ThreadAbortException occurs when we try to redirct to some other page on page load or some other events.. to just try to implement its catch... but dont impelement the catch of threadabortexception... as below
try
{
// your code
}
catch (ThreadAbortException taex)
{ // no implimentation here
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
hop





by: gregoryyoungPosted on 2009-01-20 at 16:42:28ID: 23425867
Its response.redirect throwing the threadabortexception ...
en-us/libr ary/a8wa7s dt(VS.80). aspx
What is the point of the catch with the retrhow?
There is an overload that takes a boolean ... pass false and it won't throw the exception. http://msdn.microsoft.com/
Cheers,
Greg