问题描述
嗨
我正在尝试创建一种在线购物的asp.net Web应用程序.当有新产品出现或产品库存即将到期或处于类似情况时,我需要在前端显示通知.使用更新面板并每隔几分钟检查服务器,但这也将是实时数据,如果没有我不需要去服务器的数据(例如在facebook中,只要有人评论您,您就会在前端收到通知) .基本上,通知应该从服务器发送到已登录用户的浏览器.有办法吗?
谢谢
Hi
I am trying to create an online shopping kind of asp.net web application.I need to show notifications in the front end when ever a new product comes in, or a product stock is going to be over or in similar situations.I am currently using an update panel and checking the server every few minutes, but this will not be live data also if there is no data i dont need to go to server (like in facebook whenever someone comments on you, you get a notification in front end). Basically the notification should come from the server to the logged in users browsers. Is there a way to do this?
Thanks
推荐答案
这篇关于Web应用程序中从服务器到客户端浏览器的通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!