Displaying Data with the Repeater Control

To display data with the Repeater control, you must create an ItemTemplate. For example, the page in Listing 13.1 displays the contents of the Movies database table (see Figure 13.1).

Figure 13.1. Displaying data with a Repeater control.

image

Listing 13.1. ShowRepeater.aspx

images

images

The Repeater control in Listing 13.1 displays each record in a separate HTML <div> tag. A databinding expression is used to display the ...

Get ASP.NET 4 Unleashed 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.