I'm using the MvcSiteMapProvider from http://mvcsitemap.codeplex.com/ to create a breadcrumb trail for my project. I have some URLs that need an ID to be passed to present information for the appropriate user, e.g. http: //localhost:52306/Home/User?ID=101101
When I navigate further into the sitemap (e.g. http: //localhost:52306/Home/User/Details?ID=101101) and try to use the breadcrumb link to take me back to the "User" page, the ID parameter is lost. I have tried adding SiteMapPreserveRouteData attributes to the action methods, but they don't seem to be doing anything. Is there an easy way to make sure this ID information is preserved? I thought the SiteMapPreserveRouteDataAttribute was supposed to do this, so is there something I am doing wrong with the attribute? My method would look like this:
[SiteMapPreserveRouteData]
public ActionResult User()
{
//code
}
Let me know if you need any more info from me.