Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global.asax and redirect
Message
From
10/07/2006 06:08:46
 
 
To
07/07/2006 15:21:47
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:
01134872
Views:
20
Hi,

>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?

Response.Redirect() normally triggers a BeginRequest() - try it in the Page_Load() of Default.aspx as a test. Maybe something in the framework affecting it?
Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform