ASP.NET 开发聊天室程序(英文)
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]