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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -