Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ASP.NET Security, Roles?
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00875536
Message ID:
00877078
Vues:
16
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,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform