System.Web.UI.WebControls Namespace Menu Class
.NET Framework version 2.0
Returns or sets the character used to delimit the path of a menu item in a Menu control.
Inline |
<asp:menu pathseparator = char ... > |
Script |
Menu.PathSeparator [ = char ] |
char |
The character used to delimit the path of a menu item. |
The property is read/write with a default value of a slash mark ( / ).
Use the PathSeparator property to specify the character used to delimit the path of a menu item in a Menu control.
Each MenuItem object in a Menu control has a ValuePath property that specifies the position of the menu item in the menu structure.
The value path is a string of delimited values that form the path from a root menu item to the current menu item.
Use this 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 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 ValuePath property cannot be parsed accurately.
Menu Members