Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Response.Redirect way of doing things
Message
De
26/01/2012 09:58:04
 
 
À
25/01/2012 10:26:37
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01533685
Message ID:
01533804
Vues:
38
As a follow up to your last response, there is a small adjustment that is required. As is, the process will continue after the redirect on the ongoing hit in progress. In order to assure that the hit really stops, the following is required:
                oServer.ClearError()
                oResponse.Redirect(lcUrl + lcParameter, True)
                oHttpContext.ApplicationInstance.CompleteRequest()
I have read a few places that False was needed to stop the process as the documentation was reversed. So, this seems to have confused a lot of people. Maybe this is also something they fixed recently. But, one thing for sure, if False is in there, the process goes to the next line, which doesn't do anything, and continue with the rest of the code. When I put True, the next line is not even executed.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform