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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jisny AvPosted Aug 12, 2016, 2:46 AM
james bondPosted Jan 20, 2016, 4:12 PM
Rajeesh MenothPosted Dec 29, 2015, 6:50 AM
Posted Dec 29, 2015, 6:45 AM
Rajeesh MenothPosted Dec 29, 2015, 6:42 AM
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>
Ashish VishwakarmaPosted Dec 29, 2015, 6:35 AM