More Ways to Update Databases using ASP.NET 2.0 SqlDataSource - Testing the Example
(Page 4 of 5 )
Run the Default.aspx page, which is shown in the next screen shot, and you will find that it retrieves the data from the Employee's table of the Northwind database. We are retrieving only the EmployeeID, FirstName and LastName fields.

Now select the last employee item, Paul Mic, and you will be taken to the Default2.aspx where you can update this employee's data as shown in the next screen shot.

As you can see, the TextBoxes of the Default2.aspx page show the first and last names of the employee. Now change the Last Name to something like Mick and the First Name to Joseph for example, and click on the Update button. You will be taken to the Default.aspx again, but this time you will see the updated record, as shown in the next screen shot.

If you don't have that 10th record, then update whatever record you want. Your result set might be different from mine of course. Let's see what we have done in the code.
Next: Using the QueryStringParameter and the ControlParameter >>
More ASP.NET Articles
More By Michael Youssef