History - September 2009

Response.Redirect and the ThreadAbortException

03 Sep 2009

I came across an issue today where a Redirect was causing an exception to be logged in the Event viewer. I had the endResponse parameter set to true so was initially a little surprised at this behaviour.
I was aware that a ThreadAbortException is raised when a Response.Redirect() is invoked but expected that setting the parameter to end the page processing would avoid this falling through to any code that might