0

I am stuck on one point, I have applied recently breadcrumb using MVC3 sitemap. It is working fine for actions where no parameter is there or all parameters have default values. Only problem is when I try it with action having some parameter(with no default values) like in action

public ActionResult Edit(int id)

How to include mvcSiteMapNode for such kind of action. I tried using

<mvcSiteMapNode title="EditTraining"
                  controller="HotelPolicy"
                  action="Create"
                  preservedRouteParameters="id"/>

but still of no use. Please someone suggest how to implement it.

user692942
  • 16,398
  • 7
  • 76
  • 175
Anuj Sharma
  • 67
  • 11
  • well for starters, your action is `Edit` and in the sitemapnode you've got `Create`. – markpsmith Jul 18 '14 at 09:48
  • possible duplicate of [MvcSitemapProvider - Add value to ignore in url resolver](http://stackoverflow.com/questions/21561022/mvcsitemapprovider-add-value-to-ignore-in-url-resolver) – NightOwl888 Jul 18 '14 at 16:36
  • @markpsmith NightOwl888 thanks guys, as stated by marksmith I was creating for Edit and action written was 'Create' – Anuj Sharma Jul 23 '14 at 06:59

0 Answers0