11.9. Advanced Binding
By now you probably are excited about how easy the Microsoft AJAX libraries can make client-side data binding. The ASP.NET AJAX libraries also contain a number of other useful features that I will cover now:
Conditional rendering
Converters
Two-way data binding
Implementation of the Observer pattern
11.9.1. Conditional Rendering
Sometimes you will want to apply logic to the rendering of your content—perhaps in a medical application to highlight abnormal lab results. The ASP.NET AJAX libraries allow you to do this by embedding conditional logic within your markup.
|
Get Introducing .NET 4.0: with Visual Studio 2010 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.