Hi all
What are the ramifications of either of the possible values for the
[optional] boolean endResponse parameter when calling
Response.Redirect?
If if false, is there some mysterious processing that continues on the
current page?
Normally, when I place a Response.Redirect in my code, I expect
whatever was done at that point to be done, and I expect nothing else
from this code anyway.
thanks
jeff
Anthony Jones - 23 Mar 2008 10:02 GMT
> Hi all
>
[quoted text clipped - 8 lines]
> whatever was done at that point to be done, and I expect nothing else
> from this code anyway.
Yes when false execution of the current page can continue. There is nothing
mysterious about it. Respose.Redirect simply sets a different status code
for the response and adds a location header to the response. In classic ASP
you had not choice that this would also imply an Response.End. ASP.NET OTH
gives us the option not to end the current execution.
Whilst it would be pointless to continue supplying content to the client
(which will ignore the content and follow the redirect instead) there are
occasions where you need other server side things to happen.

Signature
Anthony Jones - MVP ASP/ASP.NET