How can I stop an ASP.NET website from loading depending on a certain condition?
How can i stop asp.net website?
I want check some condition and after that if something's wrong then stop website from loading开发者_Python百科.You could try the code.
Response.End()
You actually want to redirect to another page in case of an exception.
精彩评论