This article has been
excerpted from book "A Programmer's Guide to ADO.NET in C#".
|
Mahesh |
234, G. Road |
12398 |
|
Mike |
5443, NY |
89433 |
|
AJ |
P. Rd |
54323 |
Table 7-20. An item
Examples of single-item data-bound controls are textboxes, buttons, labels,
images, and so on.
You use the multi-item data bound controls to display the entire or a partial
table. These controls provide direct binding to the data source. You use the
DataSource property of these controls to bind a database table to these controls
(see table 7-21).
|
Mahesh |
234, G. Road |
12398 |
|
Mike |
5443, NY |
89433 |
|
AJ |
P. Rd |
54323 |
Table 7-21. Multiple-item controls
Some examples of multi-item data-bound controls are DataGrid, ListBox,
DataList, DropDownList, and so on. Figure 7-22 shows some of the data bound
controls.

Figure 7-22. Data-bound control
Table 7-4 ASP .NET Data-Bound Controls
| CONTROL | ASP.NET CODE | DESCRIPTION |
|
DataGrid |
<asp:DataGrid> |
Display a database (through ADO .NET) in a scrollable grid format and supports selection, adding, updating, sorting, and paging |
|
DataList |
<asp:DataList> |
Displays data in templates and style format |
|
ListBox |
<asp:ListBox> |
Displays list box, which can be associated to ADO.NET data field to display data in a list format |
|
DropDownList |
<asp:DropDownList> |
Displays DropDownList control, which can be used to display ADO.NET data source data in a drop down combo box format |
|
CheckBox |
<asp:CheckBox > |
Display single check box, which can be connected to an item of the ADO.NET data source |
|
CheckBoxList |
<asp:CheckBoxList> |
Display list of check boxes that can be connection to the to the ADO.NET data source |
|
Repeater |
<asp:Repeater> |
Displays a templated data-bound list |
|
TextBox |
<asp:TextBox> |
Displays a text box, which can be used to display ADO.NET using its Text property |


hasan jaffalPosted Feb 16, 2010, 12:30 PM
Greetings, It's an introduction article, I would appreciate if you write about binding using ASP.NET MVC custom controls.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p> Regards,<o:p></o:p> Jaffal – http://jaftalks.wordpress.com<o:p></o:p> <o:p> </o:p>