The problem is that the Response.End method throws a ThreadAbortException exception that prevents debugging.
The challenge is to avoid this exception.
The Response.Redirect ("nextpage.aspx", false) method Response.Redirect ("nextpage.aspx", false) will continue the further execution of the code, which is not acceptable in my case, as the 500-я error then drops.
How to get around this situation?
How to interrupt further code execution when calling the Response.Redirect("nextpage.aspx", false) method Response.Redirect("nextpage.aspx", false) ?