ASP.NET 开发聊天室程序(英文)

王朝c#·作者佚名  2006-12-17
宽屏版  字体: |||超大  

The other parameter supplied to the method is the name of the service Object called

When the user types his nick name in the Text Box and presses the , an asynchronous call is made to the Web Service's

PrasadUriahCharlotte

The Chat List in the return message, which is is parsed out by applying the XPath pattern

The method then goes on to set a timer to invoke the

Whenever the client types a message in the text box and presses the submit button, the

This, in brief, is the designing of the client object. You will need to take a deeper look into the

All that was described in the preceding section was the HTML code required to be supplied to the client browser. However, since ASP.NET is based on components, we need to make it easy for the web developer by encapsulating all these HTML code into a Control. Therefore, let us go on to create the ASP.NET custom control called

This control is derived from the

The properties we add to the control include one

Finally we override the Render method of the Table class and write the scripts on to the client browser using the

The Control thus created is used in any ASP.NET web form by inserting the following code: (You may change the URIs according to your server settings)

When running this application you will see a screen such as below that you can log on to and interact on.If you get someone else to log on to the page on to their computer you can have a conversation:

[download relative material]

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有