进行聊天 [英] Implement a chat

查看:84
本文介绍了进行聊天的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!
我想在asp.net的网站上进行聊天.
我应该在哪里使用AJAX?

谢谢!

Hi!
I want to implement a chat in my website on asp.net.
Where must I use AJAX?

Thank you!

推荐答案

在开始考虑实现细节(例如客户端(浏览器)与聊天服务器之间的通信)之前,您必须确定聊天服务器将要使用的内容.是.当然,即使我不提倡该过程,您也可以决定自己滚动并也将其构建到ASP.NET网站中.
开始进行此操作之前,您还需要问自己几个问题.以下是一些入门指南:

1.我的系统有多少用户
2.聊天伙伴的回复显示中可以容忍的延迟时间.
3.我真的愿意编写聊天程序还是使用现有平台?

一旦确定了要求,就可以轻松地开始做出正确的决定.也许AJAX(Pull)根本不是解决问题的方法,并且 Comet [ ^ ]会是一个更好的选择,但是正如我之前所说,最好先进行布局首先要满足您的要求.


干杯,


Manfred
Before you start to think about implementation details like the communication between the client (browser) and the chat server you have to decide what your chat server will be. Of course you can decide to roll your own and also build it into the ASP.NET website itself eventhough I don''t advocate that procedure.
Before embarking on this you further need to ask yourself a few questions. Here are a some just to get you started:

1. How many users will my system have
2. How long is a tolerable delay in the display of responses from a chatting partner.
3. Am I really willing to program a chat or will I use an existing platform.

Once you''ve nailed down your requirements it will be easier to start making the right decisions. Maybe AJAX (Pull) isn''t the way to go at all and Comet[^] would be a better choice, but as I said before you better start by laying out your requirements first.


Cheers,


Manfred


我在哪里必须使用AJAX?"您完全不需要AJAX,这可以通过标准ASP.NET实践来完成.

但是,如果您要使用AJAX,那么建议您进行一些研究. Google列出"AJAX"的141,000,000条结果
"Where must I use AJAX?" You don''t need to AJAX at all, it can be done with standard ASP.NET practices.

If, however, you meant how to use AJAX, then I suggest you conduct some research. Google lists 141,000,000 results for "AJAX"


这篇关于进行聊天的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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