-
22
pages
-
Español
-
Documents
Description
This tutorial is part of a set. Find out more about data access with ASP.NET in the Working with Data
in ASP.NET 2.0 section of the ASP.NET site at http://www.asp.net/learn/dataaccess/default.aspx.
Working with Data in ASP.NET 2.0 :: Batch
Updating
Introduction
In the preceding tutorial we saw how to extend the Data Access Layer to add support for database transactions.
Database transactions guarantee that a series of data modification statements will be treated as one atomic
operation, which ensures that all modifications will fail or all will succeed. With this lowlevel DAL functionality
out of the way, we’re ready to turn our attention to creating batch data modification interfaces.
In this tutorial we’ll build a GridView where each row is editable (see Figure 1). Since each row is rendered in its
editing interface, there’s no need for a column of Edit, Update, and Cancel buttons. Instead, there are two “Update
Products” buttons on the page that, when clicked, enumerate the GridView rows and update the database.
Figure 1: Each Row in the GridView is Editable
Let’s get started!
1 of 22Note: In the Performing Batch Updates tutorial we created a batch editing interface using the DataList
control. This tutorial differs from the previous one in that is uses a GridView and the batch update is
performed within the scope of a transaction ...
in ASP.NET 2.0 section of the ASP.NET site at http://www.asp.net/learn/dataaccess/default.aspx.
Working with Data in ASP.NET 2.0 :: Batch
Updating
Introduction
In the preceding tutorial we saw how to extend the Data Access Layer to add support for database transactions.
Database transactions guarantee that a series of data modification statements will be treated as one atomic
operation, which ensures that all modifications will fail or all will succeed. With this lowlevel DAL functionality
out of the way, we’re ready to turn our attention to creating batch data modification interfaces.
In this tutorial we’ll build a GridView where each row is editable (see Figure 1). Since each row is rendered in its
editing interface, there’s no need for a column of Edit, Update, and Cancel buttons. Instead, there are two “Update
Products” buttons on the page that, when clicked, enumerate the GridView rows and update the database.
Figure 1: Each Row in the GridView is Editable
Let’s get started!
1 of 22Note: In the Performing Batch Updates tutorial we created a batch editing interface using the DataList
control. This tutorial differs from the previous one in that is uses a GridView and the batch update is
performed within the scope of a transaction ...
-
Publié par
-
Langue
Español