how to create a bread crumb like in c-sharpcorner as well as look like in below concept
Home
Home->welcome
Home->welcome->Project
Advance in thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ashish VishwakarmaRank #575 · 4.2K reputationPosted Dec 29, 2015, 1:35 AM EST
Rajeesh MenothRank #118 · 18.4K reputationPosted Dec 29, 2015, 1:42 AM EST
Home > Knowledge > Tips > ASP.Net > Creating Bread Crumbs with ASP.Net
Sample Code:
# Create a web site.
# Add a new file to the solution called Web.sitemap - A file used to create a site map.
# Add the following code to the Web.sitemap file.
Listing 1 :
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="Home.aspx" title="Home" description="This is my home page.">
<siteMapNode url="Knowledge.aspx" title="Knowledge" description="This is my Knowledge page.">
<siteMapNode url="Tips.aspx" title="Tips" description="Tips section" >
<siteMapNode url="Aspnet.aspx" title="ASP.Net" description="ASP.Net section" >
<siteMapNode url="Breadcrumbs.aspx" title="Creating Bread Crumbs with ASP.Net" description="Creating Bread Crumbs with ASP.Net" />
siteMapNode>
<siteMapNode url="js.aspx" title="Java Script" description="Java Script Section" />
siteMapNode>
<siteMapNode url="Articles.aspx" title="Articles" description="Articles Section" />
siteMapNode>
<siteMapNode url="Goal.aspx" title="Goal" description="Goal section" />
<siteMapNode url="People.aspx" title="People" description="People Section" />
siteMapNode>
siteMap>
Listing 2 :
Then in each node page you need to place the following code. Or else you can use the SiteMapPath control in the master page so that you can display the path in all the pages that inherit from the master page instead of adding in each page.
<asp:SiteMapPath ID="SiteMapPath1" runat="server">
asp:SiteMapPath>
div>
Posted Dec 29, 2015, 1:45 AM EST
Rajeesh MenothRank #118 · 18.4K reputationPosted Dec 29, 2015, 1:50 AM EST
james bond3 reputationPosted Jan 20, 2016, 11:12 AM EST
Jisny AvRank #4,868 · 321 reputationPosted Aug 11, 2016, 10:46 PM EDT