We would use the word data controls
often in this book to imply controls that can be bound to data from external data
sources. In ASP.NET 1.x, you were introduced to a powerful data binding technique
where you could eliminate the need of writing lengthy code that was used in earlier
for binding data to data controls. With ASP.NET 2.0, you have a lot of new controls
and features added in this context. You now have simplified paging, filtering, sorting,
automatic updates, data source controls, and a host of other powerful features.
In this chapter, we will cover the following points:
The ASP.NET Data Binding Model
Data Binding Expressions
The ASP.NET Data Source Controls
Object Data Source Control
SQL Data Source Control
Access Data Source Control
XML Data Source Control
??? ??? ???
?° ?° ?° ?°
Introduction to Data Binding in ASP.NET
[ 6 ]
The ASP.NET Data Binding Model
In data binding, as we have discussed in the beginning, the controls are bound to
data from the data source resulting in read or write connectivity between the controls
and the data they are bound to. The controls are actually bound to the columns of the
result set that contains the data. This result set can be a data set, a data table, a data
reader, or any other instance of a collection type.
Pages:
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26