Hi, I was told that to shutdown an ASP.NET site and replace all pages with a static text one should add an HTML file with a special extension. But my google/bing skills are not good enough, can you please help me with this?
Thanks
Hi, I was told that to shutdown an ASP.NET site and replace all pages with a static text one should add an HTML file with a special extension. But my google/bing skills are not good enough, can you please help me with this?
Thanks
Create an "app_offline.htm" file and place it in the main directory of the application/website.
http://asp-net-whidbey.blogspot.com/2006/04/aspnet-20-features-appofflinehtm.html
http://weblogs.asp.net/scottgu/archive/2005/10/06/426755.aspx
You can put whatever HTML content you want in the .htm file and any request to your application will display this file.
Note Mehmet Ergut's comment:
"The file size should be at least 512 bytes, or Internet Exploser won't display the contents." – Mehmet Ergut