5

How can i stop asp.net website?
I want check some condition and after that if something's wrong then stop website from loading.

slugster
  • 49,403
  • 14
  • 95
  • 145

2 Answers2

5

You could try the code.

Response.End()
Shankar Narayana Damodaran
  • 68,075
  • 43
  • 96
  • 126
1

You actually want to redirect to another page in case of an exception.

tzup
  • 3,566
  • 3
  • 26
  • 34