Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4040088
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:42:22+00:00 2026-05-20T12:42:22+00:00

I am trying to populate an asp:Menu control using an XML file. I want

  • 0

I am trying to populate an asp:Menu control using an XML file. I want the menu node’s to display horizontally across the control in a static view, and have the SubMenu nodes expand dynamically from them.

The problem is I don’t want the Top node to show up at all. Right now my menu has the Top node show and everything else expands dynamically from that. How do I tell it to ignore the Top node for my menu?

<div class="clear hideSkiplink">
    <asp:XmlDataSource DataFile="~/menu.xml" ID="menuDataSource" runat="server" />
    <asp:Menu ID="NavigationMenu"  StaticDisplayLevels="1" MaximumDynamicDisplayLevels="5" DataSourceID="menuDataSource" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
         <DataBindings>
              <asp:MenuItemBinding DataMember="Menu" TextField="Text" NavigateUrlField="url" />
              <asp:MenuItemBinding DataMember="SubMenu" TextField="Text" NavigateUrlField="url" />
         </DataBindings>
    </asp:Menu>
</div>

<?xml version="1.0" encoding="utf-8" ?>

<Top>
    <Menu text="Home" url="~/default.aspx"></Menu>
    <Menu text="Ladies Styles" url="~/Products/LadiesStyles.aspx">
        <SubMenu text="Rylee" url="~/Products/Rylee.aspx"></SubMenu>
        <SubMenu text="Cameron" url="~/Products/Cameron.aspx"></SubMenu>
        <SubMenu text="Sadie" url="~/Products/Sadie.aspx"></SubMenu>
        <SubMenu text="Alanna" url="~/Products/Alanna.aspx"></SubMenu>
        <SubMenu text="Kelsey" url="~/Products/Kelsey.aspx"></SubMenu>
        <SubMenu text="Paige" url="~/Products/Paige.aspx"></SubMenu>
        <SubMenu text="Haylie" url="~/Products/Haylie.aspx"></SubMenu>
        <SubMenu text="Zoey" url="~/Products/Zoey.aspx"></SubMenu>
    </Menu>
    <Menu text="Traditional Styles"  url="MenuFromXml.aspx">
        <SubMenu text="Set In Styles" url="MenuFromXml.aspx">
            <SubMenu text="Standard" url="MenuFromXml.aspx"></SubMenu>
            <SubMenu text="Brock" url="MenuFromXml.aspx"></SubMenu>
            <SubMenu text="Trevin" url="MenuFromXml.aspx"></SubMenu>
            <SubMenu text="Gavin" url="MenuFromXml.aspx"></SubMenu>
            <SubMenu text="Landon" url="MenuFromXml.aspx"></SubMenu>
            <SubMenu text="Carson" url="MenuFromXml.aspx"></SubMenu>
            <SubMenu text="Hillary" url="MenuFromXml.aspx"></SubMenu>
        </SubMenu>
        <SubMenu text="Raglan Styles" url="MenuFromXml.aspx">
            <SubMenu text="Raglan" url="MenuFromXml.aspx"></SubMenu>
            <SubMenu text="Zachary" url="MenuFromXml.aspx"></SubMenu>
            <SubMenu text="Jacoby" url="MenuFromXml.aspx"></SubMenu>
            <SubMenu text="Keller" url="MenuFromXml.aspx"></SubMenu>
        </SubMenu>
    </Menu>
    <Menu text="Kids Styles" url="~/Products/KidsStyles.aspx">
        <SubMenu text="Brock" url="~/Products/KidsBrock.aspx"></SubMenu>
        <SubMenu text="Rylee" url="~/Products/KidsRylee.aspx"></SubMenu>
    </Menu>
    <Menu text="Patches and Accessories" url="~/Products/PatchAccessories.aspx">
        <SubMenu text="Name Patches" url="~/Products/Rylee.aspx"></SubMenu>
        <SubMenu text="Mascot Patches" url="~/Products/Cameron.aspx"></SubMenu>
        <SubMenu text="State Patches" url="~/Products/Sadie.aspx"></SubMenu>
        <SubMenu text="Hoods" url="~/Products/Alanna.aspx"></SubMenu>
        <SubMenu text="Rhinestones" url="~/Products/Kelsey.aspx"></SubMenu>
    </Menu>
    <Menu text="Color Charts" url="~/Products/ColorCharts.aspx">
        <SubMenu text="Wool Colors" url="~/Products/KidsBrock.aspx"></SubMenu>
        <SubMenu text="Leather Colors" url="~/Products/KidsRylee.aspx"></SubMenu>
        <SubMenu text="Lining Fabrics" url="~/Products/KidsRylee.aspx"></SubMenu>
    </Menu>
    <Menu text="Size Charts" url="MenuFromXml.aspx"></Menu>
</Top>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T12:42:23+00:00Added an answer on May 20, 2026 at 12:42 pm

    Use a SiteMapDataSource and set ShowStartingNode to false.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to populate a string with a double value using a sprintf
I'm trying to populate a DataTable, to build a LocalReport, using the following: MySqlCommand
I'm trying to do something that sounds fairly simple using ASP.NET 3.5. A user
I'm trying to add a navigational menu for my project which uses the ASP.NET
I'm trying to populate a TDBGrid with the results of the following TQuery against
I'm trying to populate a table with user information in a MS SQL database
I'm trying to use a BULK INSERT statement to populate a large (17-million-row) table
Trying to make a make generic select control that I can dynamically add elements
I am trying to figure out the best way to create a navigation menu
I'm trying to populate a dropdown list inside a repeater, but I'm not being

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.