On Tue, 14 Jun 2005 23:15:16 -0500, rodchar
<ro*****@discussions.microsoft.com> wrote:
hey all,
i was wondering what the true/false really does in the
response.redirect("default.aspx", false)?
thanks,
rodchar
It tells the code whether it should keep running to completion after
redirecting the client (run the lines after the Response.Redirect
statement). You can tell the code to keep running the lines after
Response.Redirect, even after the client has received the 302 response for
the redirect. I've never done it for this reason myself, but this
argument comes in very handy if you are doing a Redirect within a
try...catch. By default it would throw an exception to abort the current
thread (which is usually ignored by the framework), but if inside a
try...catch of yours, the exception would get caught by your try..catch
and cause you to think an error happened, when really it's just part of
normal processing (it's how a redirect 'normally' works)...
--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET