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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:49:31+00:00 2026-05-11T06:49:31+00:00

I want my ASP.NET site to have simple menu string aka Breadcrumbs. I have

  • 0

I want my ASP.NET site to have simple menu string aka Breadcrumbs. I have created Sitemap with all required elements and registered into Web.config. For example:

<siteMap>     <siteMapNode url='Default.aspx' title='Home' >         <siteMapNode url='hosting/Default.aspx' title='Hosting' />         <siteMapNode url='software/Default.aspx' title='Software'>             <siteMapNode url='firefox/Default.aspx' title='Firefox'>                 <siteMapNode url='Download.aspx' title='Download' />                 <siteMapNode url='Support.aspx' title='Support' />             </siteMapNode>         </siteMapNode>     </siteMapNode> </siteMap> 

And created a control placed on Masterpage. Here it’s menu generation code:

protected void Control_Load(Object sender, EventArgs e) {     string path = String.Empty;     StringCollection list = new StringCollection();      foreach (string str in Request.Url.Segments)     {         path += str;         string link = String.Format('<a href=\'{0}://{1}{2}\'>{3}</a>', Request.Url.Scheme, Request.Url.Authority, path, this.names[str]);         list.Add(link);     }      foreach (string str in list)     {         menu += String.Concat(str, SeparatorLine);     }     menu = menu.Remove(menu.LastIndexOf(SeparatorLine)); } 

But it uses a StringDictionary like { { ‘/’, ‘Home’ }, { ‘hosting/’, ‘Hosting’ }, { ‘software/’, ‘Software’ } .. }

How can I use a query to Sitemap instead of it? Or maybe something else, not Sitemap, but beforehand invented.

  • 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. 2026-05-11T06:49:32+00:00Added an answer on May 11, 2026 at 6:49 am

    ASP.NET SiteMapPath Control

    <asp:SiteMapPath ID='SiteMapPath1' Runat='server' /> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have simple jQuery Mobile site created using asp.net mvc 2 and uses basic
I have a ready RSS atom feed on my ASP.net site,but I want to
I want to create a simple CMS for my asp.net-mvc site. Will I save
I have this asp.NET web site that for some odd reason doesn't want to
I have an ASP.NET 3.5 e-commerce site that has an admin section. I want
I have a simple three page asp.net webforms site and having an issue with
I have a simple ASP.NET site making a call to a WCF service. The
My asp.net site allows users to pick the theme they want from a list
I want to display user ratings in my asp.net site using bars and ratings.
I want to Implement the membership, there is tow ways: by (ASP.NET Web Site

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.