Another in my unpredictable series on ASP.NET 4.0, let’s take a look at one of the biggest areas of investment, AJAX. You can break this down into 3 key areas:
- Refactoring of the ASP.NET AJAX libraries
- The ability to declaratively instantiate client-side behaviors and controls
- Data support (templating, data binding, observer pattern and much more)
To date, the ASP.NET AJAX library has been pretty much a monolithic block (well, 3 blocks in fact – MicrosoftAjax.js, MicrosoftAjaxWebForms.js, MicrosoftAjaxTimer.js). But as we continue to extend and enrich the AJAX library, it makes sense to refactor it into more manageable chunks and allow developers to reference (and thus have the user download) only those features required for the page.
As a result, the ASP.NET AJAX library in ASP.NET 4.0 has been refactored into around a dozen separate files. Via the <ScriptManager /> you can opt to explicitly reference only those parts of the library you need. And of course, you can combine these server-side into a single request using the script combining capability introduced in ASP.NET 3.5 SP1.
Declarative instantiation of components is nice, but in the same way that LINQ was the catalyst for .NET language features such as lambdas, anonymous types and implicit typing, it’s really just a pre-requisite for the biggie – those data features…
I should also mention that we’ll ship jQuery in the box with VS2010 so whether you’re after a comprehensive AJAX framework or powerful yet lightweight DOM manipulation, ASP.NET 4.0 has exactly what you need.
All the above merit exploring in more depth – I'll do that over the next few days in follow-up posts.