Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global.asax and redirect
Message
De
11/07/2006 11:56:34
 
 
À
11/07/2006 05:12:58
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:
01135376
Vues:
17
>
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform