Summary

The Repeater control is the simplest of the list-bound controls in that it doesn't do much. However, it can loop through a set of data, and it can display information from each row, without you writing much code or doing much work. Here are some key items you should take away from this chapter:

  • The Repeater control is one of three list-bound controls provided by ASP.NET: Repeater, DataList, and DataGrid. Each of the three list-bound controls provides different features, with different uses.

  • You must set the Repeater's DataSource property to bind it to any object that supports the IEnumerable interface. In this example, you bound the control to a DataTable object.

  • In order for the Repeater control to display its data, you must supply at ...

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.