I want to create a down for maintenance page in asp.net mvc so whatever the request is it will point it to Home/Down
What router configs I need to set in global.cs file?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use an App_Offline.htm file. Simply upload an html file with this name to the route of your ASP.NET application and all requests will route to it. When you are ready to put your site back online simply delete the file. There’s a small gotcha you should be aware of when using
App_Offline.htmfile with an ASP.NET MVC application.