System.Web.UI.MenuItems Namespace MenuItem Class
.NET Framework version 2.0
Sets or retrieves a value indicating whether the current MenuItem is selected in a Menu control.
Inline |
<asp:menuitem selected = true | false ... > |
Script |
MenuItem.Selected [ = true | false ] |
This property accepts or returns only a boolean value: true to indicate that the current MenuItem is selected; otherwise, false. Default value is false.
Use the Selected property to specify or determine whether the current MenuItem is selected in a Menu control.
Although the property can be used to determine whether a menu item is selected, it is more common to use the SelectedItem property.
NOTE: Only one menu item at a time can be selected in the Menu control.
MenuItem Members