我们如何暂时关闭正在运行的网站&给出消息“该站点是暂时不可用的". [英] How can we temporary off the running website & gives a message "This site is Temprorary unavailable".

查看:104
本文介绍了我们如何暂时关闭正在运行的网站&给出消息“该站点是暂时不可用的".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何临时关闭正在运行的网站并给出消息此站点暂时不可用",实际上我想赋予管理员管理权,他可以临时打开/关闭该网站...根据我的需要添加web_offline.htm页面.我只需通过按钮控制即可完成操作,即活动网站和活动网站(动态方法)

How can we temporary off the running website & gives a message "This site is Temprorary unavailable", actully i want to gives a power to admin he can temporary on/Off the website... according to my need i dnt want to add web_offline.htm page. I simply do it by button control i.e. Active website & Deactive website(dynamic method)

推荐答案

如果您的虚拟目录是一个单独的ASP.NET应用程序,则可以放置一个名称为 app_offline.htm
的HTML文件 有关更多信息,请参见:
http://weblogs.asp.net/scottgu/archive/2005/10/06/426755.aspx [ ^ ]
If your virtual directory is a separate ASP.NET application, you could put a HTML file with the name app_offline.htm
for more refer :
http://weblogs.asp.net/scottgu/archive/2005/10/06/426755.aspx[^]


为此,请查看此CodeProject提示: App_Offline.htm [^ ]
Have a look at this CodeProject tip for it: App_Offline.htm [^]


请检查以下网址,

将网站置于维护模式(正在建设中) [ ^ ]

希望这对您有帮助...
Please check following url,

Put the website in Maintenance Mode (Under Construction)[^]

Hope this may help you...


这篇关于我们如何暂时关闭正在运行的网站&给出消息“该站点是暂时不可用的".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆