System.Web.UI.WebControls.Menu.PathSeparator Property

Gets or sets the character used to delimit the path of a menu item in a System.Web.UI.WebControls.Menu control.

Syntax

[System.ComponentModel.DefaultValue(/)]
public char PathSeparator { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Each menu item (represented by a System.Web.UI.WebControls.MenuItem object) in the System.Web.UI.WebControls.Menu control has a MenuItem.ValuePath property that specifies the position of the menu item. The value path is a string of delimited values that form the path from a root menu item to the current menu item. Use the Menu.PathSeparator property to specify the delimiting character used to separate the values in the menu path. This value is commonly used when parsing the list for the individual values.

Depending on the text 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 text should not contain any commas; otherwise, the MenuItem.ValuePath property cannot be parsed accurately.

Requirements

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