locked
A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll RRS feed

  • Question

  •  

    When click on Btn Cancel i get this exception even if i cath the exception

    protected void BtnCancel_Click(object sender, EventArgs e)
        {
            try
            {
                Response.Redirect("Default.aspx", false);
            }
            catch (ThreadAbortException ex)
            {
                //do whatever you need to
            }
        }

    • Changed type CoolDadTx Thursday, September 19, 2013 9:38 PM question
    Thursday, September 19, 2013 8:49 PM

Answers