0
我正在使用Routing屬性和MvcSiteMapper。一切都很好,直到我到了第三級:MVC路由 - 第三級不在菜單或麪包屑中顯示
[Route("productmaingroup", Name = "ProductMainGroup")]
[MvcSiteMapNode(Title = "Title 1", ParentKey = "home", Key = "ProductMainGroup", Order = 1)]
http://mysite.co.uk/myrouteprefix/productmaingroup
Home > Title 1
[Route("productsubgroup", Name = "ProductSubGroup")]
[MvcSiteMapNode(Title = "Title 2", ParentKey = "ProductMainGroup", Key = "ProductSubGroup")]
http://mysite.co.uk/myrouteprefix/productsubgroup
Home > Title 1 > Title 2
[Route("product/{id:int}", Name = "Product")]
[MvcSiteMapNode(Title = "Title 3", ParentKey = "ProductSubGroup", Key = "Product")]
http://mysite.co.uk/myrouteprefix/product/1234
NONE?!
我試圖顯示的內容中關於URL和麪包屑上述一切發生的時候。我是否已達到sitemapper的限制?
檢查您的RouteConfig.cs文件並確保配置正確 – Aminul