BulletedList::SelectedValue Property
Gets or sets the Value property of the selected ListItem object in the BulletedList control.
Assembly: System.Web (in System.Web.dll)
[BindableAttribute(false)] public: virtual property String^ SelectedValue { String^ get () override; void set (String^ value) override; }
<asp:BulletedList SelectedValue="String" />
Property Value
Type: System::StringThe Value of the selected ListItem in the BulletedList; otherwise, an empty string (""), if no item is selected.
| Exception | Condition |
|---|---|
| NotSupportedException | An attempt was made to assign a value to the SelectedValue. |
The SelectedValue property is inherited from the ListControl class and is not applicable to the BulletedList control.
Note: |
|---|
The SelectedValue property is set internally based on the selected list item in the BulletedList control. If you set the SelectedValue property directly, a NotSupportedException exception is thrown. |
This property is not bindable in visual designers, but is bindable at runtime. For more information, see BindableAttribute.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note: