neel k

neel k

  • NA
  • 143
  • 135.9k

mvc sitemapprovider

Jun 16 2015 3:44 PM
hi,
 
I am using MVC SiteMapProvider in mvc 5 application, in that I need use same view 2 time.
First:  localhost/Reports/AvailableReport/runreport.  
breadcrumd: AvailableReport/runreport
Second: localhost/Reports/AvailableReport/editreport/runreport.
breadcrumd:  AvailableReport/ editreport/runreport                                                                                                                                                                                                                                                                                                                                                                                                                         
<mvcSiteMapNode title="Home" controller="Reports" action="AvailableReports">
<mvcSiteMapNode title="Manage Users" controller="Reports" action="ManageUsers">
<mvcSiteMapNode title="Add User" controller="Reports" action="AddUser"/>
<mvcSiteMapNode title="Edit User" controller="Reports" action="EditUsers" preservedRouteParameters="id"/>
</mvcSiteMapNode>
<mvcSiteMapNode title="Add Report" controller="Reports" action="AddReport"/>
<mvcSiteMapNode title="Run Report" controller="Reports" action="RunReport" preservedRouteParameters="id"/>
<mvcSiteMapNode title="Manage Report Groups" controller="Reports" action="ManageReportGroups">
<mvcSiteMapNode title="Add Report Group" controller="Reports" action="AddReportGroup"/>
<mvcSiteMapNode title="Edit Report Group" controller="Reports" action="EditReportGroup" preservedRouteParameters="id"/>
</mvcSiteMapNode>
<mvcSiteMapNode title="Edit Report" controller="Reports" action="EditReport" preservedRouteParameters="id" >
<mvcSiteMapNode title="Run Report" controller="Reports" action="RunReport" preservedRouteParameters="id"/>
</mvcSiteMapNode>
</mvcSiteMapNode>
</mvcSiteMap>
 
    Only first breadcrumb display perfectly, I tried these links
http://stackoverflow.com/questions/7350567/mvc-3-sitemap-provider-multiple-paths-pointing-to-same-node 
http://stackoverflow.com/questions/19953616/mvcsitemapprovider-multiple-paths-to-the-single-
page/19967995#19967995 
 
What is the parent key, route, key.