开发者

ASP.NET emergency shutdown and redirect

I was told that to shutdown an ASP.NET site and replace all pages with a static 开发者_如何学Pythontext 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?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜