Command objects can retrieve data, as you saw in the previous example. You can also use them to update, delete, and insert data—that is, you can use them to take action with the data. In this example, you'll add code that can update the prices of items in the Products table, using a Command object. After you add the required controls and code to the page, it should look like Figure 13.2.
Follow these steps to modify the layout of Products.aspx and to add the code necessary to update prices:
Immediately above the ...