Is it necessary to call Response.End() after Response.Redirect(url)
Update
Thanks for all the answers. Because some answers say that it's necessary and others say no, I have searched more and have found in msdn under remarks the following:
Redirect calls End which raises a ThreadAbortException exception upon completion.
Response.Redirect
calls Response.End
for you
I don't agree its good practice - it leads to misleading code.
MSDN:
Redirect calls End which raises a ThreadAbortException exception upon completion.
The laws of HTTP explain that once a response is sent the server is done (no more code gets called)
Response.Redirect allows you to call Response.End.
Response.Redirect(url, true);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With