This documentation is archived and is not being maintained.

Data Access in Web Forms Pages

Visual Studio .NET 2003

Many Web Forms pages involve data access — displaying data and, in some cases, allowing users to edit and update data. Knowledge of data access technology in Web Forms pages helps you create efficient Web applications.

The following sections contain introductory information on data access in Web Forms pages and on how to bind controls to data in a page.

Note   When you deploy an application that includes Visual Studio data-access components, you must make sure that the user installing the application has version 2.6 or higher of the Microsoft Data Access Components (MDAC). For more information, see Adding a Launch Condition for Microsoft Data Access Components.

In This Section

Introduction to Data Access in Web Forms Pages
Provides background on how data access works in Web Forms pages.
Data Sources for Web Forms Pages
Discusses what types of data you can work with in a Web Forms page.
Web Data Access Strategy Recommendations
Provides guidelines for choosing whether to use direct access to a data source or a disconnected cache (dataset); and if you use a dataset, whether to store it between round trips.
Data Walkthroughs for Web Forms Pages
Provides a list of Help topics that demonstrate various data access strategies for Web applications.
Web Forms Data Binding
Provides links to topics that discuss how data binding works in Web Forms pages and how to specify data binding for various types of controls.

Related Sections

Dataset Updates in Visual Studio .NET
Lists topics that describe how to edit, insert, and delete records in a dataset.
Database Updates from Datasets
Lists topics that describe how to save changes from a dataset to a data source.
Performing Database Operations Directly
Lists topics that describe how to read and write information directly from and to a database.
Introduction to Data Binding in Web Forms Pages
Provides a detailed introduction to data binding in Web Forms.
Data Form Wizard
Creates data-bound Windows Forms or Web Forms pages. The topic describes how to run the wizard, what options you can choose, and what the wizard generates.
Walkthrough: Creating Paged Data Access Using a Web Forms Page
Describes how to create a Web Forms page that allows users to view data records a few records at a time, paging back and forth to view earlier and later records.
Walkthrough: Creating Read-Only Data Access in a Web Forms Page
Describes how to create a Web Forms page with an ASP.NET DataGrid server control on it that uses a data reader to display read-only data.
Walkthrough: Displaying an XML Document in a Web Forms Page using Transformations
Gives step-by-step details on how to read an XML file and display it in different ways on a Web Forms page.
Walkthrough: Using a DataGrid Web Control to Read and Write Data
Gives step-by-step details on using a DataGrid control to display data, allow users to edit it, and then send the changed data back to the source.
Web Walkthroughs
Lists topics that illustrate various ways to create Web applications, including some that show examples of data binding.