Using DataSource
Controls
You bind a DataBound
control to a DataSource
control. A DataSource
control represents a particular type of data.
The ASP.NET 4 Framework includes the following six DataSource
controls:
• SqlDataSource
—
Represents data retrieved from a SQL relational database, including Microsoft SQL Server, Oracle, or DB2.
• LinqDataSource
—
Represents a LINQ to SQL query.
• AccessDataSource
—
Represents data retrieved from a Microsoft Access database.
• ObjectDataSource
—
Represents data retrieved from a business object.
• XmlDataSource
—
Represents data retrieved from an XML document.
• SiteMapDataSource
—
Represents data retrieved from a Site Map Provider. A Site Map Provider represents the page and folder structure of a website.
The ...
Get ASP.NET 4 Unleashed 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.