如何在ASP.NET中实现实时通知 [英] How do implement live notifications in ASP.NET
本文介绍了如何在ASP.NET中实现实时通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
与facebook风格相同如何在数据库数据同时更改时实现实时通知应该更新通知
我尝试过:
试图用标签做但设计部分是好的编码问题它显示错误
same as facebook style how do i implement live notifications when the database data is changing simulatneously the notifcations should be updated
What I have tried:
tried to do with label but designing part is okay coding problem its showing error
推荐答案
为您提供多种选择:
ASP.NET SignalR
HTML5通知API
Firebase云通知
SqlDependency
这是我之前用SignalR实现实时更新的一个例子: ASP.Net SignalR:构建一个简单的实时聊天应用程序 [ ^ ]
和这是另一篇文章,演示如何像通知一样做facebook:
[使用SignalR和Knockout实时发表评论和通知]
这是一个使用SqlDependcy和SignalR的例子: http://techbrij.com/database-change-notifications-asp-net-signalr-sqldependency [ ^ ]
Couple of options for you:
ASP.NET SignalR
HTML5 Notification API
Firebase Cloud Notification
SqlDependency
Here's an example that I wrote before on implementing real-time updates with SignalR: ASP.Net SignalR: Building a Simple Real-Time Chat Application[^]
And here's another article that demonstrate how to do facebook like notifications:
[Realtime Post Comment and Notifications with SignalR and Knockout]
And here's an example using SqlDependcy with SignalR: http://techbrij.com/database-change-notifications-asp-net-signalr-sqldependency[^]
这篇关于如何在ASP.NET中实现实时通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文