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

Click here to load this message in the networking platform