Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET ExtJS
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
Edited 20-Feb-12 18:37pm
v2
Rate this: bad
good
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.
 
—SA
  Permalink  
Comments
Rishikesh_Singh at 21-Feb-12 0:38am
   
Thanks for your suggestion, but i think my question was not very clear so i have rephrased it.
SAKryukov at 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.
--SA
Rishikesh_Singh at 21-Feb-12 2:16am
   
Thanks and i mark it as answered.
SAKryukov at 21-Feb-12 2:21am
   
You are welcome, and thank you.
Good luck, call again.
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Comments
Rishikesh_Singh at 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
0 Sergey Alexandrovich Kryukov 505
1 OriginalGriff 248
2 ChintanShukla 185
3 Richard Deeming 175
4 Bhavik_Patel 170
0 Sergey Alexandrovich Kryukov 8,688
1 OriginalGriff 7,237
2 CPallini 2,598
3 Richard MacCutchan 2,080
4 Abhinav S 1,888


Advertise | Privacy | Mobile
Web01 | 2.8.140827.1 | Last Updated 21 Feb 2012
Copyright © CodeProject, 1999-2014
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