Can you have 2 url's that point to the same page in an asp:Menu control?

后端 未结 4 2141
甜味超标
甜味超标 2021-02-19 19:36

I have an asp:Menu and it contains a top level menu item that points to http://www.example.com/one.aspx. When you hover over the top level menu item, it shows a dropdown and on

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-19 19:57

    I don't believe so.

    The Menu control uses each item's NavigateUrl property as the identifier for highlighting and expanding the menu correctly - if you have two nodes with the same URL, how will the control know which one to highlight?

提交回复
热议问题