Search code examples
asp.netaspmenu

PathSeparator is not rendering in asp menu control


PathSeparator is not rendering in asp menu control, below is my code


<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" PathSeparator=">" StaticDisplayLevels="10">
    <Items>
        <asp:MenuItem Text="Home" NavigateUrl="~/Default.aspx">
            <asp:MenuItem Text="About Us"></asp:MenuItem>
        </asp:MenuItem>
    </Items>        
</asp:Menu>

am I missing anything here? Any help will be appreciated


Solution

  • This behavior is by design: the value of the PathSeparator property is not supposed to be rendered on the page.

    Its only purpose is to specify the separator character to use in the ValuePath property.