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




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

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