How can I stop the loading of an ASP.NET website depending on a specific state?

How to stop asp.net website? I want to check some conditions, and after that, if something is wrong, stop loading the site.

+3
source share
2 answers

In fact, you want to redirect to another page in case of an exception.

+1
source

You can try the code.

Response.End()
+3
source

Source: https://habr.com/ru/post/1792155/


All Articles