Add querystring information to breadcrumb

Feb 14, 2011 at 8:24 PM

I added the site map to my solution to provide breadcrumbs for the user and it works great except for those links that i need to grab information from the query string and/or session (user search for a specific record and i want to be able to send them back to it). Does anyone have an example of how to take information out of the query-string (or View data) and add it on to the breadcrumb....was think about creating a DynamicNode class but thought it may be simpler than that.

 

Any help is appreciate

Feb 15, 2011 at 6:10 PM

You could try adding a sitemapnode from the Controller.

http://mvcsitemap.codeplex.com/wikipage?title=Defining%20sitemap%20nodes%20in%20code&referringTitle=Home

You could set the values in the attribute.