Article ID: 312629 - View products that this article applies to.
This article was previously published under Q312629
If you use the Response.End, Response.Redirect, or Server.Transfer method, a ThreadAbortException exception occurs. You can use a try-catch statement to catch this exception.
The Response.End method ends the page execution and shifts the execution to the Application_EndRequest event in the application's event pipeline. The line of code that follows Response.End is not executed.
This problem occurs in the Response.Redirect and Server.Transfer methods because both methods call Response.End internally.
To work around this problem, use one of the following methods:
Article ID: 312629 - Last Review: August 30, 2012 - Revision: 4.0