[How Do I:] Implement the Persistent Communications Pattern using Web Services?

By Joe Stagner|16 minutes|

In a traditional Web site the browser and the server do not maintain an ongoing communication, but communicate only in response to the user performing an action. In a modern Web site where the page becomes an application container, it can be advantageous for the browser and the server to maintain an ongoing communication so that page updates can occur without the user performing an action. This is known as the Persistent Communications Pattern for AJAX. ASP.NET AJAX provides two main ways for Web developers to implement the Persistent Communications Pattern. In an earlier video we saw how to use the ASP.NET AJAX UpdatePanel as the basis of the implementation. In this video we learn how to implement the same pattern using a JavaScrpt call to a Web service, which removes the need for an ASP.NET AJAX UpdatePanel.

DOWNLOADS: Code (C#)|Code (VB)|MP3|MP4|WMV

This article was originally created on August 22, 2007

Author Information

Joe Stagner

Joe Stagner – Joe has spent 10 years providing guidance to developers building web applications.