Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET ListItem Selected Property

ASP.NET ListItem Selected Property


ListItem Control ListItem control


Definition and Usage

The Selected property is used to set or return whether a ListItem is selected by default.

If this property is set to TRUE, the ListItem is selected by default; otherwise it is FALSE. The default is FALSE.

Syntax

/>


Example

The following example sets the selected ListItem in a ListBox control:

Demo Example »


ListItem Control ListItem control