リンク: ASP.NET.4GuysFromRolla.com: Accessing and Updating Data in ASP.NET 2.0: Filtering Database Data with Parameters.
A Multipart Series on ASP.NET 2.0’s Data Source Controls
ASP.NET 2.0 introduced a number of new Web controls designed for accessing and modifying data.
These controls allow page developers to declaratively access and modify data without writing any
code to perform the data access. This article is one in a series of articles on ASP.NET 2.0’s new data
and advantages of data source controls, and compares their usage in ASP.NET 2.0 to data access techniques in ASP.NET 1.x.
SqlDataSource and AccessDataSource controls to query data from a relational database.
– learn how to
retrieve just a subset of database data based on hard-coded values and
values from the querystring, other Web controls on the page,
session variables, and so on.