基于新发布的新通知 [英] New Notification based on New Posting

查看:62
本文介绍了基于新发布的新通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在维护一个以3层架构构建的学生门户网站。



这个学生门户网站有很多部分,包括动态布告牌。



我想在通知栏上张贴新通知时实施一些通知。



请帮帮我,怎么可以我这样做



编辑




我使用datalist控件作为notieboard。 datalist的数据源是数据库中名为Student_Notice的表。





通知由管理员和学生发布在各自的帐户中查看通知。



此通知适用于所有学生。



什么我需要的是什么时候有新的通知添加,即管理员在Student_Notice表中插入新记录,每当学生登录时,应该通过通知机制发布一个新通知,就像我们在这里一样非常论坛。



例如我已经在论坛上发布了这个问题,如果有人回答我的问题,我会收到通知,你的问题有一个回复。



希望现在很清楚。

I am maintaining a student Portal constructed in 3 tier architecture.

This Student Portal has lot of sections including a dynamic noticeboard.

I want to implement some thing like notification whenever a new notice is posted to the noticeboard.

Please help me out , how can i do it

EDIT



I am using a datalist control as the notieboard. The datasource of the datalist is a table named "Student_Notice" in the database.


The notices are posted by the admin side and students in their respective account view the notice.

This notice is common for all the students.

What I need is when ever there is a new notice added i.e a new record inserted in the Student_Notice table by the admin ,Whenever the students log in , One should be intimated regarding the new notice being posted via a notification mechanism just like we have in this very Forum.

For e.g I have posted this question in the forum if some one replies to my question , I get a notification , that there is one reply to your question.

Hope it is clear now.

推荐答案

你好Kunal,



请使用 ASP.NET SignalR [ ^ ]符合您的要求。



关于ASP.NET SignalR



微软称ASP.NET SignalR是ASP.NET开发人员的新库,可以轻松开发实时Web功能。 SignalR允许服务器和客户端之间的双向通信。服务器现在可以在连接的客户端可用时立即将其推送到连接的客SignalR支持Web套接字,并且可以回退到旧版浏览器的其他兼容技术。 SignalR包括用于连接管理的API(例如,连接和断开事件),分组连接和授权。



谢谢
Hi Kunal,

Please use ASP.NET SignalR[^] for your requirement.

About ASP.NET SignalR

Microsoft say "ASP.NET SignalR is a new library for ASP.NET developers that makes developing real-time web functionality easy. SignalR allows bi-directional communication between server and client. Servers can now push content to connected clients instantly as it becomes available. SignalR supports Web Sockets, and falls back to other compatible techniques for older browsers. SignalR includes APIs for connection management (for instance, connect and disconnect events), grouping connections, and authorization."

Thanks


这篇关于基于新发布的新通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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