Understanding ASP.NET Response.Redirect
Posted by: Rob Howards Blog,
on 24 Oct 2007 |
View original | Bookmarked: 0 time(s)
ASP.NET has a wonderful carry over from Classic ASP that many developer still use: Response.Redirect(string url); When ASP.NET encounters a Redirect() request it will internally throw a thread abort exception and immediately send headers back to the client (typically a browser) to go to another URL. There are a couple of things to be aware about when you use Response.Redirect(): 1. Internally a ThreadAbort exception is thrown. This is normal and if you monitor your CLR exceptions and use Response.Redirect()...