ASP. NET Web Forms-data binding, asp. netforms
ASP. NET Web Forms-data binding.
We can use Data Binding to complete the list with options 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:
Asp: RadioButtonList
Asp: CheckBoxList
Asp: DropDownList
Asp: Listbox
The options of each of the preceding controls are usually defined in one or more asp: ListItem controls, as follows:
However, we can use an independent data source for data binding, such as databases, XML files, or scripts, to fill in the list options through data binding.
By using the imported data source, the data is separated from HTML, and the modifications to the options are completed in an independent data source.
In the following three chapters, we will describe how to bind data from a scripted data source.