Under the root directory of the ASP. NET 2.0 site, all requests to .aspxwill be directed to app_offline.htm if the app_offline.htm file exists. In addition, the address bar of the browser displays the requested. aspx URL.
In this case, we only need to copy the app_offline.htm to the root directory of the site.
App_offline.htm file: <! --
**************************************** ************
**************
* ****** App_offline.htm cannot be smaller than 512 bytes *******
**************
**************************************** ************
-->
< Html >
< Head >
< Meta HTTP-equiv = "Content-Type"
Content = "Text/html; charset = gb2312" >
< Title > Updating site </ Title >
</ Head >
< Style >
Div {
Background-color : # Ffffcc ;
Padding-top : 10px ;
Padding-bottom : 10px ;
Padding-left : 10px ;
Padding-Right : 10px ;
Border-style : Solid ;
Border-color : Black ;
Border-Width : 1px ;
}
</ Style >
< Body >
< Div >
< H1 > Updating site </ H1 >
< P > Updating the site. Please visit later. </ P >
</ Div >
</ Body >
</ Html >
The browsing interface is as follows:
Note:
(1)app_offline.htm cannot be smaller than 512 bytes.
(2) Iis cannot stop.
Bytes
Address: http://www.cnblogs.com/anjou/archive/2006/12/22/600949.html