A sneak peak at ASP.NET AJAX 4.0′s client-side templating
AJAX, ASP.NET, JavaScript, UI By Dave Ward. Updated October 15, 2008
Hot on the heels of the recent ASP.NET AJAX roadmap, Bertrand and team have released a limited preview of the new AJAX functionality coming in ASP.NET 4.0.
To see how the new functionality stacks up, I decided to recreate my recent jTemplates example, using only ASP.NET AJAX and its new templating features. Eventually, I settled on using the DataView class, which offers more advanced, repeater-like functionality.
Having successfully completed the exercise, I thought it seemed like something that you might find interesting too. The solution boils down to four easy steps:
- Creating a page method to return JSON data.
- Setting up a ScriptManager to coordinate script and page method access.
- Defining the client-side template that will render the JSON data.
- Using JavaScript to render the template, using the page method’s return.

In response to many of the articles here, I receive feedback asking how to achieve the same results without using ASP.NET AJAX. As much as I’m a fan of ASP.NET AJAX, I must agree that its JavaScript payload can certainly be a drawback in some situations.
The overzealous double-clickers amongst our users often make it desirable to temporarily disable the controls that trigger server side processing. Previously, I’ve shown you how to 

