共用方式為


SqlDataSource Web Server Control

The SqlDataSource control enables you to use a Web control to access data located in a relational data base, including Microsoft SQL Server and Oracle databases, as well as OLE DB and ODBC data sources. You can use the SqlDataSource control with other controls that display data, such as the GridView, FormView, and DetailsView controls, to display and manipulate data on an ASP.NET Web page, using little or no code.

The topics in this section describe how to use the SqlDataSource to connect to a database and retrieve and update data.

In This Section

  • Securing Data Access
    Provides information on protecting access to data sources from security threats.