嗨,我有一个网站与区域和这
url localization strategy.
@Html.MvcSiteMap().Menu(false, true, true)但在以下情况下,Bredcrum路径不会出现:
@Html.MvcSiteMap().SiteMapPath() 在未显示sitemappath的页面中,视图和routeData正确(页面显示正确),节点数据也正确。下面是一个示例:
<mvcSiteMapNode title="$resources:URL, LinkSolPerso" clickable="false" >
<mvcSiteMapNode title="$resources:URL, LinkInteg" area="soluciones_personalizadas" controller="integracion" action="Index" />
<mvcSiteMapNode title="$resources:URL, LinkServOfre" area="soluciones_personalizadas" controller="proyectos" action="servicios-ofrecidos" />
<mvcSiteMapNode title="$resources:URL, LinkTrabRea" area="soluciones_personalizadas" controller="proyectos" action="trabajos-realizados" />
<mvcSiteMapNode title="$resources:URL, LinkObtPres" area="soluciones_personalizadas" controller="proyectos" action="obtener-presupuesto" />
<mvcSiteMapNode title="$resources:URL, LinkSolPerso" area="soluciones_personalizadas" controller="formacion" action="Index" />
<mvcSiteMapNode title="$resources:URL, LinkPromPat" area="soluciones_personalizadas" controller="promociones_patrocinios" action="Index" />
</mvcSiteMapNode>问题是我不知道可能会发生什么(节点在站点地图中显示时是正确的…)也不是最好的调试方法...
谢谢
发布于 2012-06-21 21:42:51
我不知道哪里出了问题。但为了节省您的时间,我应该告诉您,我已经修复了它,从项目下载源代码(在我使用nuget包之前)并引用它。通过这种方式,一切都运行得很完美。
https://stackoverflow.com/questions/11137536
复制相似问题