Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global.asax and redirect
Message
De
10/07/2006 06:08:46
 
 
À
07/07/2006 15:21:47
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01134557
Message ID:
01134872
Vues:
21
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform