Chapter 20. Data-Bound and Templated Controls

 

Life grants nothing to us mortals without hard work.

 
 --Horace

In the previous chapter, we built a few controls completely from scratch—that is, not inheriting from existing Web controls, but simply using the base class for ASP.NET server controls as a starting point. Although they are effective and functional, both the GaugeBar and BarChart controls lack a few key features. More often than not, real-world controls need to be data-bindable and support templates. The importance of being a data-bindable control surfaced clearly in Chapter 6 (“Creating Bindable Grids of Data”) and Chapter 9 (“ASP.NET Iterative Controls”), in which we thoroughly discussed and explored the DataGrid, Repeater, and DataList ...

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