Configuration of Role authorization based on controls asp.net -
is there way configure section of aspx/ascx page, limiting controls in page user based on roles,something section level access can configured ?? if next time role has been given additional accesses view section not accessible before, can configure role instead of changing in code. can configured ?? in advance
you can through code:
panel.visible = roles.isuserinrole(..);
or
panel.visible = this.user.identity.isinrole("..");
and when add them role, panel becomes visible. there's nothing built-in tie control role, , change it's visibility. however, it's easy code.
Comments
Post a Comment