System.Web.UI.MenuItems Namespace MenuItem Class
.NET Framework version 2.0
Sets or retrieves a value indicating whether a MenuItem is enabled.
Inline |
<asp:menuitem enabled = true | false ... > |
Script |
MenuItem.Enabled [ = true | false ] |
This property accepts or returns only a boolean value: true if a MenuItem is enabled; otherwise, false. Default value is true.
Use the Enabled property to indicate whether a MenuItem is enabled in a Menu control.
When this property is set to false, the menu item is disabled and no pop-out image indicating child items is displayed. Setting this property to false essentially makes the menu item the end of that node, where no further levels are shown off of that node.
If you want the menu item to show child items, but not be "clickable" itself, set the Selectable property to false instead.
MenuItem Members