O'Reilly logo

ASP.NET Developer's JumpStart by Ken Getz, Paul D. Sheriff

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How Does the Repeater Control Work?

In order for the Repeater control to display data, you must provide two things: a DataSource property value (indicating the source of the data), and at least one HTML template (indicating how the control should display data from its data source).

Displaying Data

So that the Repeater can display data (its only reason for existence), you must set the control's DataSource property. You can use a DataTable object (as you'll see in the example later in the chapter) or any other object that supports the IEnumerable interface, including Array, ArrayList, DataView, HashTable, Queue, and more.

The Repeater control provides no built-in support for displaying data. You must tell the control what you want it to do with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required