Murali Kris

Murali Kris

  • 1.4k
  • 254
  • 46k

Thread was being aborted

Aug 1 2019 2:53 AM
Hi all,
 
i would like to know why i am getting error in catch method this error.
 
in try catch
 
inserting data after inserting redirecting to success page, after redirecting, noticed error in catche method
 
try{
//Peice of code to insert data
cmd.ExecuteNonQuery();
Response.Redirect("RegistrationsuccessPage.aspx");
}
Catch (Exception ex)
{
Response.Write("Error:" + ex.Message);//Thread was being aborted
}
can some one help me how to solve this error.

Answers (4)