Thread was being aborted error
Hi,
Can any one help me. I am using try catch exception
and getting 'Thread was being aborted'.
can any one tell me why it is coming.
Thanks & regards
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Niradhip ChakrabortyPosted Jun 22, 2009, 5:44 AM
If you want to use it inside Try/Catch block then use the following code.
Response.Redirect(queryAddress.ToString(), false);
Niradhip ChakrabortyPosted Jun 22, 2009, 9:21 AM
Purushottam RathorePosted Jun 22, 2009, 8:23 AM
Purushottam RathorePosted Jun 22, 2009, 5:17 AM
Niradhip ChakrabortyPosted Jun 22, 2009, 4:47 AM
If u r using Response.Redirect make sure your Response.Redirect is outside Try/Catch block. You cannot transfer control to other process from try/catch block.