Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global.asax and redirect
Message
From
11/07/2006 11:56:34
 
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01134557
Message ID:
01135376
Views:
16
>
>Response.Redirect("Test2.aspx")
in the Page_Load() of Test.aspx

Ok, I have found what was causing this. Basically, BeginRequest() is executed before PreRequestHandlerExecute(). So, this is why oPage was not yet initialized to the calling page in my BeginRequest() framework method which is being called from Global.asax BeginRequest() event. What I did was simply to use my EndRequest() framework method, which is being called from Global.asax EndRequest() event, and put the condition in there.

The goal was to show a javascript alert message once but not on postback. As this parameter is received in the URL, I needed to assure that this message was only being shown once and not on postbacks.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform