mvc breadcrumb c#

Mvc SiteMap Provider C#

Add mvc sitemap breadcrumb using MvcSiteMapProvider

MVC Sitemap Provider Breadcrumbs step by step

Step 1
Create New Empty MVC4 Project.

Step 2
Add NuGet package.
Select View > Other Windows and then select “Package Manager Console”.

PM> Install-Package MvcSiteMapProvider

As we are using Razor as our view engine, that have been added to the SitemapDemo > Views > Shared > DisplayTemplates folder. Here’s how your solution should now look:

MVC Sitemap Provider Breadcrumbs C#

Step 3
Now we are add breadcrumb in _Layout.cshtml file.

@Html.MvcSiteMap().Menu(false, true, true)
<p>
    Start of Breadcrumbs:</p>
@Html.MvcSiteMap().SiteMapPath()
@RenderBody()

Full Demo Download.

mvc breadcrumb c# mvc breadcrumb c# Reviewed by Bhaumik Patel on 9:05 PM Rating: 5