Chapter 18. Using the Repeater Control

OBJECTIVES

  • Learn how list-bound controls work

  • Add templates to control the behavior of the Repeater control

  • Bind data to templates within the Repeater control

  • React to events of items in the Repeater control

ASP.NET provides three controls—Repeater, DataList, and DataGrid—that display data, either from ADO.NET or from any data source that supports the IEnumerable interface. Each of these controls provides a template-based display of the data, meaning that you separate the data binding from the display of the data. Each of these controls renders the contents of its data source according to the HTML tem plates you supply for the header, items, footer, and so on.

The basic concept behind all these controls is ...

Get ASP.NET Developer's JumpStart 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.