Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to put security logic ?
Message
 
À
29/05/2007 11:54:23
Bill Oeftering
Mainstreet Computers, Inc.
Belleville, Michigan, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01229082
Message ID:
01229202
Vues:
17
Bill,

>I have a page which requires security. In the page I'm using a menu item in which, depending on the access level of the user, I want to disable. Since the page automatically calls the userlogin form, I need an "after login" type event at the page level. I have logic that calls GetAccessLevel() but the user must be logged in before this will work. Any ideas on where to put this logic ? btw: using Infragistics menu.

when you set a form's RequiresSecurity property to true, the user is redirected to the login page. After the user is authenticated, they are redirected back to the original page. This means you can put code in the form's Page_Load() or OnPreRender() and it will fire after the user is authenticated.

Best 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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform