If you need to have parts of page accessible to only some rolas:
- group all controls which belongs to same set of role into some container object ( asp:Panel )
- do Visible on/off of Panels in Page_Init / Page_Load depending on which role current user have
Hi
You set the visible property of the controls to false, if you don't wanna display the control or you can disable them based on their role.
It is some thing like
If
context.User.IsInRole("Member")ThenbtnMember.Visible =
TrueElsebtnMember.Visible =
FalseEndIfGood Luck
0 comments:
Post a Comment