Click here to Skip to main content
13,054,329 members (122,166 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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
Posted 20-Feb-12 16:00pm
Updated 20-Feb-12 18:37pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.

Rishikesh_Singh 21-Feb-12 0:38am
Thanks for your suggestion, but i think my question was not very clear so i have rephrased it.
SAKryukov 21-Feb-12 0:51am
My advice is still applicable to your modified question; you only need to add an additional message to each page. You can add it to a master page if you use any. This page should read a maintenance start time from the database (your should be able to use, say, DbNull to indicate that a message should not be shown) and generate the message is it should be shown (maintenance planned for certain time within half an hour) or hide it (in this case you should generate empty HTML instead of the message). That's it.
Rishikesh_Singh 21-Feb-12 2:16am
Thanks and i mark it as answered.
SAKryukov 21-Feb-12 2:21am
You are welcome, and thank you.
Good luck, call again.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Rishikesh_Singh 21-Feb-12 0:39am
Thanks for the link. i think i was not clear with my question so i have rephrased it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 21 Feb 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100