How to handle ThreadAbortException Without Specifying False for Response.End

Posted by coffeeaddict on Stack Overflow See other posts from Stack Overflow or by coffeeaddict
Published on 2010-04-26T21:38:35Z Indexed on 2010/04/26 21:43 UTC
Read the original article Hit count: 298

Filed under:
|

I know all about this exception, read the msdn article here http://support.microsoft.com/kb/312629/EN-US/ but I do not know how to handle this when my boss does not want me to throw in false for the Response.End.

Here's what I have:

        else 
        {
 try
 {
  VoidlOrder(transactionID);
 }
 catch (Exception ex)
 {
  LogError(ex.ToString());
 }
 finally
 {
     RedirectUser(sessionID,"showfmsg=1", true);
 }
        }

RedirectUser is just a utility method we run that ultimately passes in true for the reponse.redirect resopnse.end param.

So what other option is there other than putting false as this param? He's stating to catch it and do something...ok do what? I don't see any other fix than to send false into this call every time because I can't get pass this exception..I get it every time.

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET