现场维护信息 [英] Site Maintenance message

查看:75
本文介绍了现场维护信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要求,我需要在用户屏幕上进行站点维护之前显示通知,例如在维护开始时间(维护开始时间将存储在数据库中)之前的半小时,直到维护开始.

什么是最好的方法做到这一点.
这是ASP.Net应用程序,使用ExtJs Query

I have requirement where i need to display notification prior to the site maintenance on the user''s screen , say half an hour before the maintenance start time (Maintenance start time will be stored in the database) until the maintenance start.

What is the best approach to do it.
This is ASP.Net application and uses ExtJs Query

推荐答案

创建一个或多个正在维护"页面. (可选)此类页面可以从数据库中读取计划的完成维护时间并显示它.将布尔值标志存储在数据库中,例如维护中".如果站点的不同部分需要单独维护(因此,一个部分可以进行维护,而其他部分仍在生产中),请创建多个标志.每个APS.NET应用程序都应首先检查与正在生成的页面相关的标志.如果对当前页面所属的站点部分开始维护,请重定向到维护页面.

在进行维护工作之前,您应该设置必需的维护标志;否则,请执行以下操作.如果您还使用计划时间指示完成维护,请首先执行.您应该为此创建一个脚本;如果可以是仅向站点维护人员公开的ASP.NET.

—SA
Create one or more "Under maintenance" pages. Optionally, such page could read a planned completed maintenance time from the database and display it. Store a Boolean flag in the database, something like "under maintenance". If you have different parts of the site with separate maintenance (so, one part can go under maintenance while some other are still in production), create several flags. Each APS.NET application should first checkup a flag relevant to the page being generated. If maintenance is started for the part of the site where the current page belong, redirect to the maintenance page.

Before maintenance work, you should setup required maintenance flags; if you also use indication of planned time for the maintenance completion, do it first. You should create a script for this; if can be an ASP.NET exposed only to a site maintenance personnel.

—SA


检查这些
维护编程的艺术 [将网站置于维护模式(正在建设中) [ ^ ](3个技巧/窍门)
Check these
The Art of Maintenance Programming[^]
Put the website in Maintenance Mode (Under Construction)[^](3 Tips/Tricks)


这篇关于现场维护信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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