What will happen in the following scenario? Will he quit work after response.redirect?
Or I need to use Response.Redirect in the catch block of the main method, where it throws a stack of exception calls ....
try { //code } catch(Exception ex) { Response.Redirect("Error.aspx"); throw; }
, , , , End(). , (endResponse) true. End() , , throw.
true
: http://msdn.microsoft.com/en-us/library/a8wa7sdt.aspx
, endResponse true . End , ThreadAbortException .
, , endResponse false.
false
Response.Redirect( ), , .
, false, . Response.Redirect("Error.aspx", false), .
Response.Redirect("Error.aspx", false)
( , ).
Source: https://habr.com/ru/post/1720510/More articles:How can I dry shared text in a Django template? - djangoBuilt-in scripting engine for DSL - c ++What is the problem when the javac compiler creates a jarfile with lower case file names? - compiler-constructionOracle - difference or change between two rows from two tables - sqlError with implicitly typed variables - c #ASP.NET Handling lambdas - c #libtool vs ar to create a static library (xcode linker) - xcodeAccess to files outside the document input area - mod-rewriteASP.NET custom web form vs InfoPath - asp.nethttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1720515/from-php-workers-to-python-threads&usg=ALkJrhgCetEQNwTHtVAnTf8c7ScHeVNamQAll Articles