Conclusion

ASP.NET data binding has three faces—classic source-based binding (as in ASP.NET 1.x), data source controls, and data-binding expressions. Data-binding expressions serve a different purpose than the other two binding techniques. Expressions are used declaratively and within templated controls. They represent calculated values bindable to any property. Starting with ASP.NET 2.0, support for expressions has been empowered to go beyond the boundaries of classic data binding. ASP.NET supports custom expressions that are evaluated when the page loads, not when the data-binding process is triggered.

The old data-binding model of ASP.NET 1.x is maintained intact with enumerable collections of data bound to controls through the DataSource property ...

Get Programming Microsoft® ASP.NET 3.5 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.