I am developing an asp.net mvc 2.0 application in which I want to implement bread crumb pattern but I don’t know how to implement it in asp.net. By browsing different sites I come to know about MVCSiteMap Provider but I don’t know how to use it and how I can implement bread crumb in asp.net mvc 2.0 using mvcsitemap. Please help me.
Thanks in advance.
Regards
MvcSiteMapProvider is, as the name implies, an ASP.NET MVC SiteMapProvider implementation for the ASP.NET MVC framework. Targeted at ASP.NET MVC 2, it provides sitemap XML functionality and interoperability with the classic ASP.NET sitemap controls, like the SiteMapPath control for rendering breadcrumbs and the Menu control.
Creating a first sitemap
The following is a simple sitemap XML file that can be used with the MvcSiteMapProvider:
Defining sitemap nodes in code
In some cases, defining a sitemap node in code is more convenient than defining it in a sitemap xml file. To do this, decorate an action method with the MvcSiteMapNodeAttribute attribute. For example:
MvcSiteMapProvider
MVC Sitemap Provider tutorial and examples
MVC Sitemap Provider tutorial 2 – Breadcrumbs