October 2010
Intermediate to advanced
1920 pages
73h 55m
English
DetailsView ControlA DetailsView control renders an HTML table that displays the contents of a single database record. The DetailsView supports both declarative and programmatic databinding.
For example, the page in Listing 12.1 displays a record from the Movies database table, using declarative databinding (see Figure 12.1).
Figure 12.1. Displaying a movie record.

Listing 12.1. ShowDetailsView.aspx

In Listing 12.1, the SQL Select statement associated with the SqlDataSource control retrieves the first movie from the ...