ASP.NET AJAX

On March 25, 2010, in .NET, 70-502, 70-503, 70-526, 70-528, 70-529, 70-536, by Allen Ryan

ASP.NET AJAX is a set of extensions to ASP.NET developed by Microsoft for implementing Ajax functionality.

Road Map

In its early development stages, ASP.NET AJAX was given the code name Atlas. Initial releases were made public to the development community in the form of CTPs (Community Technical Previews). The production version, ASP.NET AJAX 1.0 RTM; was released on January 23, 2007 as an extension to ASP.NET 2.0.

Important release milestones for ASP.NET AJAX are as follows:

  • CTPs: October, December 2005, January, March, April, June, July 2006
  • Beta: October, November 2006
  • Release Candidate (RC): December 2006
  • ASP.NET AJAX 1.0 RTM: January 23, 2007
  • ASP.NET AJAX 3.5: November 19, 2007 (as part of ASP.NET 3.5)

The next version, ASP.NET AJAX 4.0; will be part of the ASP.NET 4.0 framework release.

Browser support

ASP.NET AJAX runs on the following browsers:

  • Microsoft Internet Explorer (> 6.0)
  • Mozilla Firefox (> 1.5)
  • Opera (> 9.0)
  • Apple Safari (> 2.0)

ASP.NET AJAX Suite

At present, the ASP.NET AJAX suite consists of the following components and packages:

  • Microsoft Ajax Library 3.5: It is a JavaScript library that provides the client-side features of the ASP.NET AJAX framework. Integrated in ASP.NET 3.5, the library is also available as a separate download for use in other environments, such as PHP.
  • A server framework: It is included in ASP.NET 3.5 for building Ajax-enabled ASP.NET server controls. These components are also available for ASP.NET 2.0 in a separate package called ASP.NET 1.0 Extensions.
  • ASP.NET 2.0 AJAX Templates: It is a package with a set of Visual Studio templates for building ASP.NET AJAX applications with ASP.NET 2.0 and Visual Studio 2008.
  • ASP.NET AJAX Preview: It is a package with the new features that will be part of the future versions of the framework.
  • Ajax Control Toolkit

Microsoft Ajax Library

The Microsoft Ajax Library is a JavaScript library that provides the features for the client portion of the ASP.NET AJAX framework.

  • Components: The library provides an infrastructure to build either visual or non-visual JavaScript components. A global JavaScript object Sys.Application is responsible for managing the lifecycle of client components.
  • JavaScript extensions: It is an enhanced type system is introduced to emulate object-oriented constructs such as namespaces, classes and interfaces; and to perform reflection on client types.
  • Abstraction API: It is common operations on the DOM (retrieving elements, setting styles and other manipulations) are automatically translated by the library into browser-specific calls.
  • Ajax: It is a set of client components is provided to handle Ajax requests.
  • Application Services: It is the library that allows accessing the ASP.NET Membership, Authentication, Roles and Profile services from the client side.

Recently, new features have been announced as part of the ASP.NET AJAX 4.0 release:

  • Template Engine: It allows displaying data on the client side by using HTML templates and a custom binding notation. This approach avoids performing page rendering on the server side.
  • Declarative instantiation of client components: It allows registration, instantiation and configuration of client components using markup code, without writing any imperative JavaScript code.
  • Live Bindings: It synchronizes element properties.
  • Command Bubbling

The UpdatePanel Control

The UpdatePanel is an ASP.NET server control that updates portions a web page without reloading it. Through a mechanism called asynchronous postback, the HTML for the region of the page wrapped by the control is sent by the server asynchronously through an Ajax request.

The ASP.NET controls that have been specified as content in an UpdatePanel are able to cause either synchronous (traditional) or asynchronous postbacks, by means of triggers.

A trigger is an event coming from an ASP.NET control that causes an UpdatePanel to refresh its contents. Through triggers, an asynchronous postback can be started also by controls that are declared outside the region of the ASP.NET page wrapped by the UpdatePanel control.

Script Controls and Extenders

The server portion of the ASP.NET AJAX framework introduces two categories of ASP.NET server controls for adding client capabilities to server controls.

An Extender is used to add client functionality to an existing ASP.NET control, without the need to create a new server control. A Script Control is a standalone ASP.NET control that offers both server and client functionality.

Using AJAX in Visual Studio.Net 2008 or .Net Framework 3.5

AJAX Introduction

Share
Tagged with:
 

214 Responses to “ASP.NET AJAX”

  1. This is really interesting, You’re a very skilled blogger. I’ve joined your rss feed and look forward to seeking more of your magnificent post. Also, I’ve shared your web site in my social networks!

  2. I’ve just started off a blog, the knowledge you give on this site has aided me extremely. Thank you for all your time & work.

  3. Interesting read, perhaps the best article iv’e browse today. We learn everyday cheers to you!

  4. Of course, what a great site and informative posts, I will add backlink – bookmark this site? Regards, Reader

  5. Great read. Thanks for the info!

  6. I would like to say “wow” what a inspiring post. This is really great. Keep doing what you’re doing!!

  7. Anibal Mehr says:

    Nice post! You truly have a wonderful way of writing which I find captivating! I will definitely be bookmarking you and returning to your blog. In fact, your post reminded me about a strange thing that happened to me the other day. I’ll tell you about that later…

  8. This post makes a lot of sense !

  9. I’ve been checking your blog for a while now, seems like everyday I learn something new :-) Thanks

  10. Luis Arnst says:

    Hello, this is my first time i visit here. I found so many interesting in your blog especially on how to determine the topic. keep up the good work.

  11. I’ve just started off a blog, the knowledge you give on this site has aided me extremely. Thank you for all your time & work.

  12. Of course, what a great site and informative posts, I will add backlink – bookmark this site? Regards, Reader

  13. I was just having a conversation over this I am glad I came across this it cleared some of the questions I had.

Leave a Reply