Internet Handholding posted on April 12, 2011 14:22

When using the Asp.net Menu Control to display a horizontal menu, you might want to add a bar between menu items, like this:
Item1 | Item2 | Item3 | Item4
There is no property in the Asp.net Menu Control to let you set a separator.
If you are using an Xml file for your menu control, the easiest way to add the separator is to put the separator in your Xml file, like this.
<menu>
<menuitem title="Item1" url="item1.aspx" />
<menuitem title="|" url="" />
<menuitem title="Item2" url="item2.aspx" />
<menuitem title="|" url="" />
<menuitem title="Item3" url="item3.aspx" />
</menu>
The separator will show as a link, but clicking on it will not do anything.