Easy Tutorial
❮ Aspnet Controls Prop Webcontrol Tablecell Horizontalalign ❯

ASP.NET DropDownList SelectedIndex Property



Definition and Usage

The SelectedIndex property is used to get or set the index number of the selected item in the DropDownList.


Example

The following example outputs the text of the selected item:


❮ Aspnet Controls Prop Webcontrol Tablecell Horizontalalign ❯