Hi Kevin,
Thank you. That worked. Now I have secure controls, pages, events and TemplateColumns of my datagrids. There is not a day that passes that I don’t find out how extendable and adaptable the mm.net framework is. Thanx again.
PS Please offer an implementation of logging out of an asp.net app so that a another user, say the manager of a department, can re-enter the app with different userid/password.
>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,