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 8964205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:32:05+00:00 2026-06-15T16:32:05+00:00

I have a sitemap like this : <?xml version=1.0 encoding=utf-8 ?> <siteMap> <siteMapNode title=Home

  • 0

I have a sitemap like this :

<?xml version="1.0" encoding="utf-8" ?>
<siteMap>
  <siteMapNode title="Home" >
    <siteMapNode title="Services" >
      <siteMapNode title="Training" url="~/Training.aspx"/>
    </siteMapNode>
  </siteMapNode>
</siteMap>

now I wanna to show second level of sitemap in separate division.

<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="false" />
<asp:Repeater runat="server" ID="menu" DataSourceID="SiteMapDataSource1"> 
    <asp:HyperLink ID="menu_items" runat="server" NavigateUrl='<%# Eval("Url") %>'><%# Eval("Title") %></asp:HyperLink>
</asp:Repeater>
<div class="separator"></div>
//Here must child Node(s) displayed
//e.g. return <a href="~Training.aspx">Training</a>
  • 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-06-15T16:32:06+00:00Added an answer on June 15, 2026 at 4:32 pm

    To display the children for the Basic Reporting, Filtering Reports, and Customized Formatting SiteMapNodes, we can add another Repeater to the initial Repeater’s ItemTemplate. This second Repeater will be bound to the SiteMapNode instance’s ChildNodes property, like so:

    <asp:Repeater runat="server" ID="menu" DataSourceID="SiteMapDataSource1">
        <ItemTemplate>
            <li>
                <asp:HyperLink runat="server" NavigateUrl='<%# Eval("Url") %>'><%# Eval("Title") %></asp:HyperLink>
    
                <asp:Repeater runat="server" DataSource='<%# ((SiteMapNode) Container.DataItem).ChildNodes %>'>
                    <HeaderTemplate>
                        <ul>
                    </HeaderTemplate>
    
                    <ItemTemplate>
                        <li>
                            <asp:HyperLink runat="server" NavigateUrl='<%# Eval("Url") %>'><%# Eval("Title") %></asp:HyperLink>
                        </li>
                    </ItemTemplate>
    
                    <FooterTemplate>
                        </ul>
                    </FooterTemplate>
                </asp:Repeater>
            </li>
        </ItemTemplate>
    </asp:Repeater>
    

    These two Repeaters result in the following markup (some markup has been removed for brevity):

    <li>
        <a href="/Code/BasicReporting/Default.aspx">Basic Reporting</a>
        <ul>
           <li>
              <a href="/Code/BasicReporting/SimpleDisplay.aspx">Simple Display</a>
           </li>
           <li>
              <a href="/Code/BasicReporting/DeclarativeParams.aspx">Declarative Parameters</a>
           </li>
           <li>
              <a href="/Code/BasicReporting/ProgrammaticParams.aspx">Setting Parameter Values</a>
           </li>
        </ul>
    </li>
    
    <li>
        <a href="/Code/Filtering/Default.aspx">Filtering Reports</a>
        ...
    </li>
    
    <li>
        <a href="/Code/CustomFormatting/Default.aspx">Customized Formatting</a>
        ...
    </li>
    

    taken from: http://msdn.microsoft.com/en-us/library/aa581781.aspx

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

Sidebar

Related Questions

I have a web.sitemap like this: <siteMapNode url=~/Default.aspx title=Home description= > <siteMapNode title=Node 1
I have this sitemap: <?xml version=1.0 encoding=utf-8 ?> <siteMap xmlns=http://schemas.microsoft.com/AspNet/SiteMap-File-1.0> <siteMapNode> <siteMapNode url=www.google.com title=Google
I have an XML Sitemap like this <?xml version=1.0 encoding=utf-8 ?> <Menu> <MenuItem Name=Page
I have a XML sitemap file which looks like this <?xml version=1.0 encoding=UTF-8 ?>
I have sitemap which looks like this: <?xml version=1.0 encoding=utf-8 ?> <siteMap xmlns=http://schemas.microsoft.com/AspNet/SiteMap-File-1.0 >
I have an ASP MVC Sitemap which look something like this <mvcSiteMapNode title=Home imageUrl=home.png
I have two XML file sitemap.xml and mouse.xml which look like below.Here the thing
I have a simple Sitemap like this from asp:SiteMapDataSource: Page 1 > Page 2
hey guys, i have a sitemap with h3's and ul's like this: <div id=ajax-base>
I have an XML structure like the following: <Page Depth=1> <Page Title=Communities Depth=2> <Page

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.