我需要 Web 应用程序中的通知系统

发布于 2024-09-25 05:02:42 字数 143 浏览 3 评论 0原文

我有一个网络应用程序,我们的客户整天都在使用它。有时,我需要停止或重新启动应用程序。当我这样做时,一些客户的工作被打断,这让他们感到紧张。

我想制作一个通知系统,出现在应用程序上并通知客户有关系统关闭的信息。

我怎样才能制作一个这样的系统?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

美人如玉 2024-10-02 05:02:42

对于通知,您可以使用 stackoverflow-style-notifications

您也可以自定义错误页面“HTTP 错误 500-12 应用程序正在重新启动”

For notification you can use stackoverflow-style-notifications

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

野心澎湃 2024-10-02 05:02:42

我认为解决这个问题的方法是使用 AJAX。制作某种轮询系统,每隔 5 分钟左右轮询一次服务器上的新“消息”。然后,您的 C# 将检查是否有新消息,将其返回到 AJAX,并且某些 jQuery 可以显示一个框或模式来提醒用户即将发生某些事情。

在刷新页面或转到新页面时,该 ajax 也可以运行,而不是等待计时器耗尽。

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.

流年里的时光 2024-10-02 05:02:42

您可以使用网络上的服务,但还有另一种简单的方法...
有一个 dos 命令可以在指定用户的屏幕上显示一条消息...但如果您的程序没有在小型网络上运行,这是最糟糕的方法...
该命令是NET SEND,但在 Windows Vista 和 Windows 7 中不再可用...
这是参考: http://www.cezeo.com/tips -and-tricks/net-send-command/

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/

岛徒 2024-10-02 05:02:42

您可以在更新之前在公共页面(主页或登录)上放置一条消息。类似“xxxxxxpm 该网站将关闭”之类的内容。

当您用一个声明其已关闭的页面替换他们对系统的访问权限(例如登录页面)时,您将不得不等待。您可以使用与登录名相同的名称放置新消息页面,或者将服务器配置为自动重定向。各大银行都是这样管理的。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文