locked
how to create sub menu related to main menu with asp:menu RRS feed

  • Question

  • User226975297 posted

    I want my menu to act like a main menu.

    My main menu did work correctly by setting

    MaximumDynamicDisplayLevels="0"

    But how do i set e sub menu that populates by the selected mainmenu?

    Thursday, November 15, 2007 2:02 PM

All replies

  • User-1377673944 posted

    Have you looked at the csstest sample in Scott Gu's post here ? In that post, scroll down to the section titled "Show me an example of how I use these control adapters?", download the csstest.zip file, open it in VS2005, run the code and see how it works.

    The sample has Menus with sub-menus for both vertical as well as horizontal menus. The code is also very bare bone and easier to understand than the CSS Control Adapters tutorial projects which have a lot of different examples.

    Thursday, December 6, 2007 11:32 PM
  • User226975297 posted

    Hi and thanxs for your answer.

    The sample has Menus with sub-menus for both vertical as well as horizontal menus.

    The given link have only ONE <asp:menu>.

    I needed one <asp:menu id=mainmenu /> and a submeny <asp:menu id=submenu /> that gets populated depending on selected in the mainmenu.

    Like most webpages are used like. one UL list for main located in the header and another UL list for subpages located at the left.

    Thursday, January 3, 2008 3:42 PM