Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ASP.NET Security, Roles?
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00875536
Message ID:
00876934
Views:
17
Neil,

>Or... how about just showing me how to determine the accesslevel for a secured control (lblProxy) for the present logged in user that I can run in the page_load event. I think that would be easier.

To determine the access level to lblProxy for the current user you can do the following:
mmSecurityAccessLevel AccessLevel = mmAppBase.SecurityMgr.GetAccessLevel(Session["mmUserSecurity_UserPk"],
					this.lblProxy.ControlID);
If you haven't already done so, you'll need to specify the following "using" statements:
using OakLeaf.MM.Main;
using OakLeaf.MM.Main.Security;
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform