asp.net.ph

MenuItem.Enabled Property

System.Web.UI.MenuItems Namespace   MenuItem Class


.NET Framework version 2.0

Sets or retrieves a value indicating whether a MenuItem is enabled.

Syntax


Inline <asp:menuitem enabled = true | false ... >
Script MenuItem.Enabled [ = true | false ]

Property Value

This property accepts or returns only a boolean value: true if a MenuItem is enabled; otherwise, false. Default value is true.

Remarks

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.

See Also

MenuItem Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph