February 2010
Beginner
400 pages
11h 13m
English
Until now, you have bound items using one-way binding. One-way binding is used automatically when you declare your binding using two curly brackets, one on each side of the data item:
{{ Name }}
ASP.NET AJAX also allows you to implement two-way data binding—if an item is updated, any other page elements bound to the same data item will also be updated. You will also soon learn how to bind to a WCF service and persist changes. To use two-way binding, simply use one curly bracket instead of two when you define the template:
{binding Name}
If you want to be more verbose/explicit about your intentions, you can also specify the binding mode:
{binding Name mode=oneWay} or {binding Name mode=twoWay}
Let's take a look at this ...