views:

82

answers:

4

I have a web application which our customer use it all day. Some times, i need to stop or restart application. When I do it, some customers' work is interrupted and this makes them nervous.

I want to make a notification system that, appear on application and inform customers about shutting down of system.

How can I make a system like that?

+1  A: 

I think the way to go here is with AJAX. Make some kind of Polling system which would poll every 5 or so minutes for new 'messages' on the server. your C# would then check if there are new messages, return them to the AJAX and some jQuery could could display a box or a modal to alert the user something will happen soon.

On refreshing a page or going to a new page this ajax could then run too, not waiting for the timer to run out.

Stefanvds
Thanks for reply Stefanvds. Your advises all good for me except polling system. When I stop the system, application will be down and messages on the server will be unaccassable. am I wrong?
mavera
In my idea, one would post the message some time before the restart. so that all users are notified before.
Stefanvds
+1  A: 

For notification you can use stackoverflow-style-notifications

You also can customize error page "HTTP Error 500-12 Application Restarting"

Branimir
Your second advice worth think about. Thanks.
mavera
A: 

You can use a service on your network but there is another simple way...
there is a dos command which shows a message on specified user's screen... but this is worst way if ur program is not running on a small network...
The command is NET SEND but its no more available in windows vista and seven...
Here is the refrence: http://www.cezeo.com/tips-and-tricks/net-send-command/

Dr TJ
Thanks for reply Dr TJ, it's not a small network.
mavera
By the way, the best solution is to use create a service to show messages from server (or maybe interact with users...)
Dr TJ
A: 

You would put a message on a common page (home or login) a while before the update. Something like "At xxxxxpm this site will be down".

When the time comes you replace their access to the system (such as the login page) with a page stating its down, you'll have to wait. You would either place the new message page with that of the same name as the login, or configure the server to redirect automatically. This is how the major banks manage it.

m.edmondson