c# - through exception while redirecting -
why debugger going catch block. what's issue?? kindly tell me.
exception:"thread being aborted".
protected void lnkresponse_click(object sender, eventargs e) { try { session["idticket"] = hfidticket.value; response.redirect("~/forms/ticketchat.aspx"); } catch (exception) { throw; } }
response.redirect throws system.threading.threadabortexception exception.
try using overload, response.redirect(string url, bool endresponse) passes false endresponse parameter suppress internal call response.end.
response.redirect ("~/forms/ticketchat.aspx", false);
Comments
Post a Comment