Easy Tutorial
❮ Prop Webcontrol Checkbox Textalign Prop Webcontrol Style Borderstyle ❯

ASP.NET Web Forms - Data Binding


We can use data binding to create lists with selectable items, which are sourced from an imported data source such as a database, XML file, or script.


Data Binding

The following controls are list controls that support data binding:

Each of these controls typically defines its selectable items within one or more asp:ListItem controls, as follows:

However, we can use an independent data source, such as a database, XML file, or script, to bind data and populate the list's selectable items.

By using an imported data source, data is separated from HTML, and modifications to the selectable items are made within the independent data source.

In the following three sections, we will describe how to bind data from scripted data sources.

❮ Prop Webcontrol Checkbox Textalign Prop Webcontrol Style Borderstyle ❯