October 2010
Intermediate to advanced
1920 pages
73h 55m
English
You can bind any of the List controls to a data source. The List controls support both declarative databinding and programmatic databinding.
For example, the page in Listing 10.2 contains a DropDownList control bound to the Movies database table with declarative databinding (see Figure 10.2).
Figure 10.2. Displaying list items with declarative databinding.

Listing 10.2. DeclarativeDataBinding.aspx

The DropDownList control’s DataSourceID property points to the ID of the SqlDataSource control. When you open the page in ...