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

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -