locked
Menu Setup RRS feed

  • Question

  • User-1489375005 posted

     Is there a way to modify the main menu strip in the MasterPage to do the following?  I want to have a dropdown option on a few items in my main menu.

    For example: 

       HOME         ABOUT        CONTACT       RESUME

                             ME

                             Company

                             etc.
     

    Let me know if this is tooo confusing.

    QWERTYtech 

    Monday, August 6, 2007 10:49 PM

Answers

  • User-157675511 posted

    Assuming you are using a sitemap file, you can certainly define a hierarchical menu. E.g. create a sitemap file like this:

    <?xml version="1.0" encoding="utf-8" ?>
    <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
      <siteMapNode url="~/default.aspx" title="HOME"  />
      <siteMapNode title="About">
        <siteMapNode url="~/about_me.aspx" title="Me" />
        <siteMapNode url="~/about_company.aspx" title="Company" />
      </siteMapNode>
     etc.

    Note that the About node has no end tag or end slash, therefore, the following nodes will be child nodes of it.

    You can find more information about sitemaps and the menu control in MSDN library or in the tutorials on this site. E.g.here: http://quickstarts.asp.net/QuickStartv20/aspnet/doc/navigation/sitenavapi.aspx#sitemap2

     

    Best regards,

    Martin 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, August 7, 2007 2:41 AM