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