ASP. NET Web Forms-data binding, asp. netforms

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.