4

PathSeparator は asp メニュー コントロールでレンダリングされません。以下は私のコードです。


<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>

ここで何か不足していますか?どんな助けでも大歓迎です

4

1 に答える 1

5

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.

于 2011-06-27T15:34:52.360 に答える