开发者

I need a notification system in a web application

开发者 https://www.devze.com 2023-01-17 22:33 出处:网络
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 ner

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?


For notification you can use stackoverflow-style-notifications

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


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消