System.Web.UI.WebControls.Menu.SelectedItem Property

Gets the selected menu item.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public MenuItem SelectedItem { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the Menu.SelectedItem property to determine the menu item selected by the user.

Note:

As a shortcut, you can also determine the text of the selected menu item directly by using the Menu.SelectedValue property.

When the user selects a menu item from a System.Web.UI.WebControls.Menu control, the Menu.MenuItemClick event is raised, which allows you to perform a custom routine by providing an event handler.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0