A Sql Data Source control was added whose Insert Parameters referred to these controls.
The Web Form also included a Button whose method, thereby kicking off the inserting workflow.
This article is one in a series of articles on ASP. In particular, we look at enabling editing support in the Grid View. This article focuses on the Sql Data Source control; for a detailed look at updating with the Object Data Source, refer to the "Editing, Inserting, and Deleting" tutorials in my Working with Data in ASP. Let's explore the updating "action" for the Access Data Source and Sql Data Source controls in more detail.
NET 2.0 introduces three new data Web controls: the Grid View, the Details View, and the Form View.
In particular, Bound Fields turn into Text Box Web controls; Check Box Fields, which are displayed as unclickable checkboxes in the read-only status, become clickable.
These controls allow page developers to declaratively access and modify data without writing any code to perform the data access. In this article we will examine basics of using the Sql Data Source and Grid View controls to update records from a database.
When editing with a Grid View we'll specified (as our's does), then the Grid View's smart tag will include a checkbox titled "Enable Editing." Check this checkbox to enable editing.
What checking this checkbox does is add a Command Field to the Grid View's field list.
However, what is more challenging is loading the selected record's values into the Web controls.
Granted, this is not that difficult to accomplish, but it isn't as easy as pointing and clicking and requires the page developer to write a bit of code. NET 2.0's data Web controls can provide an editing interface.