Easy Tutorial
❮ Prop Websecurity Currentuserid Mvc Intro ❯

ASP.NET DropDownList Control



Definition and Usage

The DropDownList control is used to create a drop-down list.

Each option in the DropDownList control is defined by a ListItem element!

Tip: This control supports data binding!


Properties

Property Description .NET
SelectedIndex The index number of the selected option 1.0
OnSelectedIndexChanged The name of the function to be executed when the selected index is changed. 1.0
runat Specifies that the control is a server control. Must be set to "server". 1.0

ListControl Standard Properties

The ListControl includes all the basic functionalities of list controls. Controls that inherit from this control include: CheckBoxList, DropDownList, ListBox, and RadioButtonList controls.

For a complete description, visit ListControl Standard Properties.

Web Control Standard Properties

For a complete description, visit Web Control Standard Properties.

Control Standard Properties

For a complete description, visit Control Standard Properties.


Example

DropdownList


❮ Prop Websecurity Currentuserid Mvc Intro ❯