BulletedList.SelectedItem Property

Gets the currently selected item in a BulletedList control.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public override ListItem SelectedItem { get; }
/** @property */
public ListItem get_SelectedItem ()

public override function get SelectedItem () : ListItem

Not applicable.

Property Value

a null reference (Nothing in Visual Basic).

In the base class, ListControl, the SelectedItem property returns a ListItem object that represents the currently selected item in a BulletedList control. The default is a null reference (Nothing in Visual Basic). The SelectedItem property is not applicable to the BulletedList control.

NoteNote:

If you use the get accessor for the SelectedItem property to return the selected item for a BulletedList control, it always returns a null reference (Nothing in Visual Basic).

Use the event data of the BulletedListEventArgs class to determine the index of the link button in a BulletedList that was clicked.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: