October 2010
Intermediate to advanced
1920 pages
73h 55m
English
DetailsView ControlYou can use the DetailsView control to update existing database records. To update an existing record, assign the value True to the DetailsView control’s AutoGenerateEditButton property, as illustrated in Listing 12.10 (see Figure 12.7).
Figure 12.7. Editing a record with the DetailsView control.

Listing 12.10. ShowUpdate.aspx

When you open the page in Listing 12.10, the record appears in Read Only mode. You can click the Edit button to switch the DetailsView into Edit mode and update the record.