O'Reilly logo

Sams Teach Yourself ASP.NET 3.5 in 24 Hours, Complete Starter Kit by Scott Mitchell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 16. Deleting, Inserting, and Editing Data

<feature><title></title>

In this hour, we will cover

  • Configuring the SqlDataSource for updating, inserting, and deleting

  • Learning the basics of the UPDATE, INSERT, and DELETE statements, which are SQL statements for modifying database data

  • Editing and deleting data with the GridView

  • Inserting data with the DetailsView

</feature>

ASP.NET’s data Web controls make displaying data a breeze—simply drag a GridView or DetailsView onto a page and bind it to a configured data source control. In addition to displaying database data, we may need to let a user modify the database’s contents. For example, in the preceding hour we saw how to show the list of books in the Books table. It might be nice to allow visitors ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required