October 2010
Intermediate to advanced
1920 pages
73h 55m
English
You can use the SqlDataSource control to represent four different types of SQL commands. The control supports the following four properties:
• SelectCommand
• InsertCommand
• UpdateCommand
• DeleteCommand
You can assign any SQL statement to any of these properties. For example, the page in Listing 9.7 uses all four properties to enable selecting, inserting, updating, and deleting records from the Movies database table (see Figure 9.3).
Figure 9.3. Executing inline SQL commands.

Listing 9.7. ShowInlineCommands.aspx
The page in Listing 9.7 contains a DetailsView control bound to a SqlDataSource control. You can ...