ASP.NET: Response.Redirect Throws ThreadAbortException
Erik Olson have already explained this item on MSDN TV, but I want just to make it more clear for ASP.NET devs out there.
Response.Redirect(url), Server.Transfer and Response.End are available in ASP.NET only because of backward compatibility to old asp. All these methods throw ThreadAbortException. Application performance suffers from that. If you still don't use it, start using Response.Redirect(url, false). Look here. for more details.
"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."
Saturday, May 1, 2004 2:22 AM