System.Web.UI.WebControls.BulletedList.SelectedItem Property

Gets the currently selected item in a System.Web.UI.WebControls.BulletedList control.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public override ListItem SelectedItem { get; }

Value

Documentation for this section has not yet been entered.

Remarks

In the base class, System.Web.UI.WebControls.ListControl, the ListControl.SelectedItem property returns a System.Web.UI.WebControls.ListItem object that represents the currently selected item in a System.Web.UI.WebControls.BulletedList control. The default is null. The BulletedList.SelectedItem property is not applicable to the System.Web.UI.WebControls.BulletedList control.

Note:

If you use the get accessor for the BulletedList.SelectedItem property to return the selected item for a System.Web.UI.WebControls.BulletedList control, it always returns null.

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 that was clicked.

Requirements

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