System.Web.UI.WebControls.BulletedList.SelectedIndex Property

Gets or sets the zero-based index of the currently selected item in a System.Web.UI.WebControls.BulletedList control.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.ComponentModel.Bindable(false)]
public override int SelectedIndex { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

In the base class, System.Web.UI.WebControls.ListControl, the ListControl.SelectedIndex property returns a zero-based index of the currently selected item. The default is -1, which indicates that nothing is selected. The BulletedList.SelectedIndex property is not applicable to the System.Web.UI.WebControls.BulletedList control.

Note   When you use the get accessor for the BulletedList.SelectedIndex property, it always returns -1. An attempt to use the set accessor for the BulletedList.SelectedIndex property raises a NotSupportedException.

Use the event data of the System.Web.UI.WebControls.BulletedListEventArgs class to determine the index of the link button in a System.Web.UI.WebControls.BulletedList control that was clicked.

This property is not bindable in visual designers, but is bindable at runtime. For more information, see System.ComponentModel.BindableAttribute.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0