向使用网站的所有用户发送警报 [英] send alert to all users who using website

查看:69
本文介绍了向使用网站的所有用户发送警报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的服务器上托管了一个Web应用程序.

我想重新启动服务器,如何向使用我的Web应用程序的所有用户发送警报消息服务器在10分钟内重新启动,请注销"

我应该如何使用asp.net(VB作为后面的代码)

感谢advnace
koolprasad2003

I have a web application hosted on my server.

I want to restart the server, how can send an alert Message to my all users that are using my web application "Server Restart in 10 Minute please logout"

How should I do it using asp.net (VB as code behind)

Thanks in advnace
koolprasad2003

推荐答案

您可以通过以下步骤进行操作:
1)在您的数据库名称中添加一个表作为警报"
2)在您的ASP Web应用程序中编写代码,以读取此表中的数据并将其以某种更改类型的方式显示在网站上.
3)当不需要显示警报时,只需从表中刷新数据
4)确保您的Web应用程序使用需要在代码脚本中构建的某些线程或某些Alter扫描仪模块连续扫描到该表.

顺便问一下,您的后端是什么.
You can do this with below step :
1) add one table in your database name as ''Alert''
2) Write code in your ASP web apps which read data form this table and disply it on website in some alter type manner.
3)when not required to display alert just flush data from the table
4)Make sure that your web apps continusly scan to this table using some thread or some alter scanner module which you need to build in you code script.

By the way what is your backend.


这篇关于向使用网站的所有用户发送警报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆