Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global.asax and redirect
Message
From
07/07/2006 15:21:47
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Global.asax and redirect
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01134557
Message ID:
01134557
Views:
76
In my Global.asax, for every hit, I have this:
    Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
        LXFramework.oRequest = Request
        LXFramework.oResponse = Response
        LXFramework.oServer = Server
        LXFramework.BeginRequest()
    End Sub
In Default.aspx, based on a specific condition, I am doing this:
oApp.oResponse.Redirect("DataEntryDBUsers.aspx")
oApp is the equivalent of LXFramework from the global.asax.

So, basically, if the condition is met, I need to redirect to DataEntryDBUsers.aspx. I see this is working. The page appears ok. But, to my big surprise, I just found out that during a redirect, the Application_BeginRequest() event of the global.asax is not fired. Basically, this makes my framework believe that I am still on Default.aspx as Application_BeginRequest() has not been executed on the redirect.

Can someone explain me why this is like that? Why the global.asax Application_BeginRequest() event is not fired on a redirect? How can I make that happen?
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
Next
Reply
Map
View

Click here to load this message in the networking platform