Inserting, Updating, and Deleting Data

Another part of dealing with data in ASP.NET applications is being able to insert new records, update existing records, and delete records from your database tables. With these three types of functions that you can execute against your database, you will be able to manipulate the contents of your database to do just about anything you want.

ADO.NET provides a bunch of ways for you to perform these functions, from simple to automated, to providing you with the tools to be very detailed and specific about how your database and ASP.NET pages interact. Let’s move along to the following sections and look at some of the ways you can use ADO.NET to affect your data.

Command

The SQLCommand object has a method ...

Get ASP.NET for Web Designers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.