\" StaticDisplayLevels=\"10\">" />
开发者

PathSeparator is not rendering in asp menu control

开发者 https://www.devze.com 2023-03-15 21:50 出处:网络
PathSeparator is not rendering in asp menu control, below is my code <asp:Menu ID=\"Menu1\" runat=\"server\" Orientation=\"Horizontal\" PathSeparator=\">\" StaticDisplayLevels=\"10\">

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" Navig开发者_如何学PythonateUrl="~/Default.aspx">
            <asp:MenuItem Text="About Us"></asp:MenuItem>
        </asp:MenuItem>
    </Items>        
</asp:Menu>

am I missing anything here? Any help will be appreciated


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消