Web应用程序中从服务器到客户端浏览器的通知 [英] Notification from server to client browsers in web application

查看:111
本文介绍了Web应用程序中从服务器到客户端浏览器的通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试创建一种在线购物的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

推荐答案

有一种方法可以这样做,但这不是免费的.

请参阅网站 http://www.udaparts.com/document/articles/dbpush.htm [ ^ ]
There is a way to do so, but it is not free.

See the site http://www.udaparts.com/document/articles/dbpush.htm[^]


查看本教程(例如在facebook中):
http://www.magic-dev.com/send-notification-signalr.htm [ ^ ]
Check this tutorial (like in facebook ):
http://www.magic-dev.com/send-notification-signalr.htm[^]


这篇关于Web应用程序中从服务器到客户端浏览器的通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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