简体   繁体   中英

I need a notification system in a web application

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?

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.

For notification you can use stackoverflow-style-notifications

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

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/

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM