asp.net.ph

MenuItem.Selected Property

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.

Syntax


Inline <asp:menuitem selected = true | false ... >
Script MenuItem.Selected [ = true | false ]

Property Value

This property accepts or returns only a boolean value: true to indicate that the current MenuItem is selected; otherwise, false. Default value is false.

Remarks

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.

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