Displaying Data with the FormView
Control
You can display a database record with the FormView
control by using an ItemTemplate
. For example, the page in Listing 12.19 displays a record from the Movies database table (see Figure 12.13).
Figure 12.13. Displaying a database record with the FormView
control.
Listing 12.19. ShowFormView.aspx
The FormView
control’s DataSourceID
property points to the SqlDataSource
control. The SqlDataSource
control ...
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.