This page initially loads ASP.NET AJAX and the ComponentModel script in order to add a click handler to the button.
When you click the button the script loader loads the DataView control and then binds the client template.
Sys.require(Sys.scripts.ComponentModel); Sys.onReady(function() { Sys.addHandler($get("bindButton"), "click", function() { $get("bindButton").disabled = true; Sys.require(Sys.components.dataView, function() { Sys.create.dataView("#dv", { data: colors }); }); }); }); var colors = [ { Name: "Black" }, { Name: "Blue" }, { Name: "White" }, { Name: "Green" } ];