Data Binding in ASP.Net 2.0
 
Introduction to Data Source Controls
 
A data source control is a set .NET Framework classes that facilitate two-way binding between data stores and data-bound controls.
 
The ASP.NET 2.0 data source controls present a declare way to work with data. Rather than having to write code to connect to a database, issue a command, and get the results as a DataReader or DataSet, with the data source controls these instructions can be specified through the standard Web control syntax.
 
ASP.NET provide data source controls that allow you to work with dissimilar types of data sources such as a database, an XML file, or a middle-tier business object. Data Source controls are new server controls that performs the core task of connecting to a data source, handles all database related tasks like reading, writing and updating the data.
 
Once a data source control has been properly configured, it can be bound to any data Web control. When the page is visited, the data Web control will automatically invoke the associated data source control, retrieve its data, and display it as configured.
 
The Types of Data Source Controls are following:
 
• ObjectDataSource Control

• SqlDataSource Control

• AccessDataSource Control

• XmlDataSource Control

• SiteMapDataSource Control
 
The Data Source Control shown in figure given below: