如何使用HTTP处理程序作出client2client沟通? [英] How to use HTTP Handler to make a client2client communication?

查看:114
本文介绍了如何使用HTTP处理程序作出client2client沟通?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的Web编程!
我尽量让一个应用程序(类似客户端到客户端通信用C#处理程序和jQuery)。

I'm new to Web programming! I try to make an app (something like Client to Client communication with C# Handlers and jQuery).

即:
当1Client使他的客户方(浏览器)的点击,有描绘一个点上,并在同一时间2Client看到的1Client那样。而且,在回合结束,2Client使点击他的浏览器,有描绘一个点,而1Client还看到什么2Client做到了。

I.E.: When 1Client make a click on his clientSide(browser), there paints one point, and on the same time the 2Client sees what 1Client did. And, in turn, where 2Client make a click on his browser, there paints one point, and the 1Client also sees what 2Client did.

我已经完成IIS的配置,我做了一个简单的显示的Hello World,它运行确定。
而且,进一步的,我应该做的事情....

I could done already the configuration of IIS, I made an simple show Hello World and it run OK. And, further, what should i done....

您能不能指点我,请用一些exemples,或教程,如何做到这一点的工作。

Can you advice me, please, with some exemples, or tutorials, how to do this job.

对不起,我的问题,这似乎是没有研究过。

Sorry for my questions which seems to be not studied.

推荐答案

要显示像想起聊天。我能想到的最简单方法。

To show a chat like think. The simplest way that I can think.

首先,你必须是守所有进入聊天行的表。
然后在页面中,您有两个控件,用户输入文本一个文本框和一个GridView控件,你显示什么是在桌子上。

First you have a table that keep all the chat lines that enters. Then in a page you have two controls, one text box that users enter text, and one GridView that you show what is on the table.

所有的,你把他们放在一个UpdatePanel和您进行内部更新为2秒。

All of that you place them on an UpdatePanel and you make an internal update to 2 seconds.

所以每次从您插入到表中的用户输入,每次插入你展示给所有用户。

So every enter from the users you inserting to the table, and every insert you show to all users.

这是开始。

这篇关于如何使用HTTP处理程序作出client2client沟通?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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