System.Web.UI.WebControls.MenuItem.ValuePath Property

Gets the path from the root menu item to the current menu item.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

The MenuItem.ValuePath property contains a delimiter-separated list of menu item values that form a path from the root menu item to the current menu item. The value path is used to indicate the position of a menu item in a System.Web.UI.WebControls.Menu control. You can specify the delimiter character used to separate the menu item values by using the Menu.PathSeparator property. This value is commonly used when parsing the list for the individual values, or to pass as an argument to the Menu.FindItem(string) method of the System.Web.UI.WebControls.TreeView class. Depending on the value displayed in the System.Web.UI.WebControls.Menu control, the delimiter character might need to be changed to prevent any conflicts. For example, if you set the delimiter character to a comma, the displayed value should not contain any commas; otherwise, you cannot accurately parse the MenuItem.ValuePath property.

Note:

The values of the MenuItem.Value property of each menu item from the root menu item to the current menu item are used to generate the value path. Menu items at the same menu level must each have a unique value for the MenuItem.Value property; the System.Web.UI.WebControls.Menu control cannot distinguish between different menu items at the same level that have the same value.

Requirements

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