Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking Cookie before each Web Forms loads
Message
From
02/10/2003 15:08:28
 
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00834359
Message ID:
00834427
Views:
18
To some what answer my own question. I placed the code in the page load event of a webform (BaseWebForm). I then set the parent of all of my webforms to this BaseWebForm. Setting up the inheritance to my BaseWebForm will work for webforms. I still have HTML pages that I must deal with.

So all though I ahve a work around, I would still like to know if I can use the Global.aspx file.


>I have a couple of ASP.Net apps running that the users now want a login on. I have no problem creating a login form and creating a transient cookie on a successfull login. In the page load event I can add the test for the cookie and if the cookie is not present redirect to the login form.
>
>This is fine for the smaller app with only 6 different forms. The problem is the other app is about 40 forms. I can add this to each and every page but I would rather do something globally.
>
>I looked into the Global.aspx but I cannot seem to find the correct event to hang this code on.
>
>Does anyone know which event in the Global.aspx I can use?
>
>thank you.
Fred Lauckner

You know, it works on my computer. I don't know what your problem is.

.Net aint so bad.
Previous
Reply
Map
View

Click here to load this message in the networking platform