Yes, there is a second parameter which will change default behavior.
But default behavior would terminate the execution.
So in
Response.Redirect("mynewpage.aspx")
return;
"return" is unnecessary
George.
>>> You are right.
>>> return will never bit hit in this case.
[quoted text clipped - 18 lines]
>
> But default behavior would terminate the execution.
Yes, that's true, but that would raise a
System.Threading.ThreadAbortException...

Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net
bruce barker - 10 Mar 2008 19:15 GMT
thats generally what you want.
overwise you need to override the render event, set a flag that a redirect
was done, then cancel the render (and maybe prerender). you may need to also
override the event firing logic, as you probably don't want to raise events
after a redirect.
if you don't do this, all the page processing happens, and html is
downloaded to the browser, but ignored because of the redirect header.
-- bruce (sqlwork.com)
> >>> You are right.
> >>> return will never bit hit in this case.
[quoted text clipped - 21 lines]
> Yes, that's true, but that would raise a
> System.Threading.ThreadAbortException...
lander - 13 Mar 2008 08:21 GMT
> >>> You are right.
> >>> return will never bit hit in this case.
[quoted text clipped - 27 lines]
>
> - 显示引用的文字 -
Hi mark, would you pls explain *why* to us? Thanks really.