共用方式為


How to: Add DropDownList Web Server Controls to a Web Forms Page

The process of adding a DropDownList Web server control to a page consists primarily of setting options that specify how items should be displayed and whether users can select multiple items.

To add a DropDownList Web server control to a Web Forms page

  1. Type an <asp:DropDownList> element into the page. For syntax, see DropDownList Web Server Control.

  2. Create items for the control in one of the following two ways:

See Also

Reference

DropDownList Web Server Control Overview