Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Response.Redirect way of doing things
Message
From
26/01/2012 09:58:04
 
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01533685
Message ID:
01533804
Views:
39
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform