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