October 2010
Intermediate to advanced
1920 pages
73h 55m
English
DetailsView ControlYou can use the DetailsView control to insert new records into a database table. For example, the page in Listing 12.14 enables you to insert a new record into the Movies database table.
Listing 12.14. ShowInsert.aspx

The DetailsView control in Listing 12.14 includes an AutoGenerateInsertButton property that has the value True. This property automatically generates the user interface for inserting a new record.
After you open the page in Listing 12.14, you can click the New button to display a form for inserting a new record. When you click the Insert button, the SQL command represented by the SqlDataSource ...