ASP.net 2.0 has a new feature that supports application offline information.
What is offline information? In the past, we were updating applications, which caused the asp.net application to restart. Users of the application would usually display unfriendly error messages, or IE would always display a loading status.
ASP.net 2.0 allows you to place an app_offline.htm file in the root directory of the application. When the user requests it, the system will check whether this file exists. If so, the system will directly return the contents of the app_offline.htm file to the user.
The content of app_offline.htm can be changed to whatever you need, but be aware that the file cannot be too small, because most users' IE is set to "display friendly HTTP error messages". If app_offline.htm is less than 512 bytes, this The settings will be invalid.
Also pay attention to the address bar. When the offline information is displayed, the address bar still displays the requested address.
I successfully tested it under iss6
http://www.cnblogs.com/baoposhou/archive/2006/12/22/600475.html