Chapter 9. AJAX in ASP.NET MVC

 

This chapter covers

  • Discussing our view on AJAX
  • Reviewing difficulties with Web Forms
  • Getting to know JavaScript libraries
  • Performing simple HTML replacement
  • Using JSON and XML responses

AJAX, or asynchronous JavaScript and XML, is a term coined by Jesse James Garret describing a clever new technique to make web applications more dynamic. AJAX introduced a new era of web applications. It’s a technique that uses the browser’s JavaScript capability to send a request to the server asynchronously. This enables applications to become richer and more user-friendly by updating small sections of the page without requiring a brutal full-page refresh. In today’s web, the vast majority of major websites have leveraged this technique to their advantage. Users are demanding this type of rich, seamless interaction with websites. You aren’t going to let them down, are you?

9.1. Diving into AJAX with an example

9.2. AJAX with ASP.NET Web Forms

9.3. AJAX in ASP.NET MVC

9.4. Summary