BulletedList.SelectedIndex Property
Assembly: System.Web (in system.web.dll)
[BindableAttribute(false)] public: virtual property int SelectedIndex { int get () override; void set (int value) override; }
/** @property */ public int get_SelectedIndex () /** @property */ public void set_SelectedIndex (int value)
public override function get SelectedIndex () : int public override function set SelectedIndex (value : int)
Property Value
-1.In the base class, ListControl, the SelectedIndex property returns a zero-based index of the currently selected item. The default is -1, which indicates that nothing is selected. The SelectedIndex property is not applicable to the BulletedList control.
Note When you use the get accessor for the SelectedIndex property, it always returns -1. An attempt to use the set accessor for the SelectedIndex property raises a NotSupportedException.
Use the event data of the BulletedListEventArgs class to determine the index of the link button in a BulletedList control that was clicked.
This property is not bindable in visual designers, but is bindable at runtime. For more information, see BindableAttribute.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.