October 2010
Intermediate to advanced
1920 pages
73h 55m
English
DropDownList ControlThe DropDownList control enables you to display a list of options while requiring a minimum of screen real estate. A user can select only one option at a time when using this control.
The page in Listing 10.9 illustrates how you can use the DropDownList control to display all the movie titles from the Movies database table (see Figure 10.8).
Figure 10.8. Displaying list items with the DropDownList control.

Listing 10.9. ShowDropDownList.aspx

The DropDownList control renders an HTML <select> tag. One problem ...