Chapter 10


What You Will Learn in This Chapter:

  • Using the UpdatePanel control to avoid page flicker
  • Understanding the ScriptManager control that enables the Ajax functionality
  • Using the UpdateProgress control to notify users about progress of an Ajax operation
  • Creating WCF services and page methods that are accessible by your client-side script Code Downloads for this Chapter

You can find the code downloads for this chapter on the Download Code tab at The code is in the Chapter 10 download.

Over the past few years, Ajax has popularized itself immensely in the web development community. Although the technology that drives Ajax has been around for quite some time, it wasn't until the beginning of 2005 that it got an official name. Ajax, which stands for Asynchronous JavaScript And XML, enables your client-side web pages to exchange data with the server through asynchronous calls, which means they don't block the user interface while running. Probably the most popular feature driven by Ajax is the flicker-free page that enables you to perform a postback to the server without refreshing the entire page. Note that the term Ajax doesn't really cover the underlying technology anymore. Asynchronous JavaScript is still used to make the calls, but in many situations XML as the data format has been replaced with JSON, as you see later in this chapter.

To enhance your website with Ajax features you can choose among ...

Get Beginning ASP.NET 4.5: in C# and VB now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.