Thursday, January 16, 2014

Redirect and the ThreadAbort exception

Tired of getting the ThreadAbort exception when you have the Common Language Runtime Exceptions enabled? Then do it properly using the following code:

Response.Redirect(url, false);
Context.ApplicationInstance.CompleteRequest();

Enjoy!

No comments: