The Repeater Control

The Repeater control is a simple container control that binds to a list of items. It walks through the bound items and produces graphical elements according to a basic rendering algorithm and the HTML templates you supply. The Repeater control supports from one through five templates. These templates, which form a tabular structure, are described in Table 1-2.

Table 1-2. Templates Supported by the Repeater Control
Template Description
HeaderTemplate Determines the heading of the final output. It is rendered only once and prior to any row. It cannot contain data bound information.
ItemTemplate Determines the output format of each row in the data source. This template is called for each item in the list and can contain ...

Get Building Web Solutions with ASP.NET and ADO.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.