ASP.NET高效的聊天应用途径高效、途径、ASP、NET

2023-09-10 13:54:36 作者:假装正经

我有一个与SQL Server连接ASP.NET 4 Web应用程序2005/2008

I have ASP.NET 4 Web Application that connects with SQL SERVER 2005/2008

我想添加一个聊天功能,我的应用程序的用户。

I want to add a "chat" feature to my application users.

假设该功能将从头开始建设,什么是最好的高效合理的方法:

Supposing the feature will be built from scratch, what's the best efficient reasonable approach:

使用 WCF Web服务通过一段JavaScript计时器每3秒 使用ASMX Web服务有一个JavaScript计时器每3秒 使用从ASP.NET(更新面板)AJAX控件,并做了部分后返回根据一个ASP.NET定时器(服务器端)每3秒。 发送从数据库应用程序的请求告诉他刷新自己,当一个新的消息出现(我没有对这种做法的想法,但我认为技术存在,但我不知道它的名字) 在一些jQuery的AJAX技术,是Microsoft AJAX .NET框架之外。这些技术应该能够与SQL Server进行通信,并与ASP.NET(而不是PHP)兼容。我不知道这个方法。 在任何其他方法或意见。 Using WCF web services with a Javascript timer every 3 seconds Using ASMX web services with a javascript timer every 3 seconds Using AJAX control from ASP.NET (Update Panel) and do a partial Post Back depending on an ASP.NET timer (server side) every 3 seconds. Sending requests from the database to the application telling him to refresh himself when a new message is there (I don't have an idea about this approach but I think the technology exists, but I don't even know its name) Some JQuery AJAX technologies that are outside Microsoft AJAX .NET Framework. these technologies should be able to communicate with SQL Server and be compatible with ASP.NET (Not PHP). I'm not sure about this approach. Any other approaches or opinions.

假设该功能将依赖于previously实施库建设。什么是完全定制的,因此很可能是开源的可能的库。如果库将节省工作时间的25%,因此,这将是巨大的,但我不能使用隐藏的code(盲DLL),如果它是pretty的甚至是关键性的,如果它可以节省80%的工作时间

Supposing the feature will be built depending on a previously implemented library. what are possible libraries that are totally customized and so likely to be open source. If the library will save 25% of the work time so that will be great, but I can't use a hidden code (blind DLL) if it's pretty critical even if it saves 80% of the work time.

谢谢

推荐答案

您应该看看SignalR - 这是pretty的好处,而少需要为它配置。

You should look at SignalR - which is pretty good and less configuration required for it.

SignalR项目 - http://signalr.net/

SignalR Project - http://signalr.net/

SignalR,简单的实现 - http://rizwanahmed.net/?p=227

SignalR, Simple Implementation - http://rizwanahmed.net/?p=227

如果您有更多的问题,让我知道...

If you have more questions let me know...

谢谢, 里兹