Declaring List Items

The List controls render a list of options. Each option is represented by an instance of the ListItem class. For example, you can use the page in Listing 10.1 to render a set of options for selecting your favorite movie (see Figure 10.1).

Figure 10.1. Displaying a list of movies.

image

Listing 10.1. FavoriteMovie.aspx

images

images

The page in Listing 10.1 contains a RadioButtonList control that contains three ListItem controls that correspond ...

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.