FI_VS2010_08 – First Impressions Visual Studio 2010 – ASP.NET AJAX 4.0 DataView Control

The new DataView control allows you to bind template expressions to a data source by using only declarative syntax. In simple scenarios, the DataView makes it easy to bind a single JavaScript object to elements in HTML. However, it also provides repeater-style (UL / LI) functionality for binding to a list, like a JavaScript array. We overview the XML namespaces required to make this work (xmlns:dataiew, sys:attach, sys:activate) and explain what the namespaces are doing for us. We extend the example with a little JavaScrpit and Sys.Observer wizardry … adding remove links next to each list item. This allows template rebinding when the array changes. Finally, we look at the xmlns:code namespace that allows us to hook click events with MS Ajax … providing another, more elegant, approach to the same example before.

« Previous LessonFirst Impressions Visual Studio 2010Next Lesson »

About this video:

Duration: 17 Minutes, 49 Seconds
Recorded Using: Visual Studio 2010 Beta 1 or Greater


10 Year Anniversary Sale - 30% Off - ENDING SOON!!!    Learn more ...