asp.net 2.0 下的一个小技巧
在ASP.NET 2.0中,你可以建立一个叫app_offline.htm(大小写没关系)的静态HTM页面文件,其中修改成你要临时显示的内容,将其放在你的应用的根目录下。这样,任何外部的请求的话,都会马上被转移到该页面了。这个时候,你的网站依然可以被访问,只不过你的应用不能被访问了。
要注意的是,这个app_offline.htm页面的大小,要大于512字节,用asp.net 之父SCOTT的话来说,就是"
Make sure the app_offline.htm file is large enough (512 bytes) to disable the IE “friendly http errors” feature
要注意的是,这个app_offline.htm页面的大小,要大于512字节,用asp.net 之父SCOTT的话来说,就是"
Make sure the app_offline.htm file is large enough (512 bytes) to disable the IE “friendly http errors” feature
浙公网安备 33010602011771号