How do i block of page requests to the website , and make it unavailable (redirect to an error page) for a specific time slot?
Asked
Active
Viewed 141 times
2 Answers
3
You can place a file named app_offline.htm
in the root directory of your ASP.NET website and ASP.NET
will automatically route all traffic to this html page. In this file you can have any HTML code to show end user that maintenance is currently in process.
Other way of doing the same can be found Here

Rahul
- 76,197
- 13
- 71
- 125
0
Insufficient info.But still you can use any of the methods. HTTHandlers in ASP.net Web forms Action Filters in ASP.net MVC. You can just check a flag set in Config file to determine whether to redirect or not if it needs to be configurable. Else you can check specific condition.

Dhanilan
- 183
- 1
- 3
- 15