Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Response.Redirect way of doing things
Message
De
25/01/2012 10:26:37
 
 
À
25/01/2012 09:59:56
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:
01533693
Vues:
48
This message has been marked as the solution to the initial question of the thread.
>When using Reponse.Redirect, in order to assure that nothing else would be executed after, is the following all that is needed:
>
>
>Response.End()
>Response.Flush()
>
I'm a bit rusty on this but I thought the best way was:
.Redirect("xxx",false);
.CompleteRequest();
(AFAIK Response.End throws an exception but .CompleteRequest() should avoid it.

UPDATE: Tail end of this seems to confirm:
http://blogs.msdn.com/b/aspnetue/archive/2010/05/25/response-end-response-close-and-how-customer-feedback-helps-us-improve-msdn-documentation.aspx
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform