0

嗨,我有一个带有区域的网站,这个

url 本地化策略。

我在使用 mvc3sitemapprovider 时遇到了问题(也是 marteen ...)。节点是明确定义的,当我输入时,站点地图会完美显示:

@Html.MvcSiteMap().Menu(false, true, true)

但有时 Bredcrums 路径不会出现:

 @Html.MvcSiteMap().SiteMapPath() 

在没有显示sitemappath的页面中,view和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>

问题是我不知道会发生什么(节点是正确的,因为它们显示在站点地图中......)也不是调试的最佳方式......

谢谢

4

1 回答 1

0

我不知道出了什么问题。但是为了节省您的时间,我应该告诉我已经修复了它,从项目中下载源代码(在我使用 nuget 包之前)并引用它。这样做一切都很完美。

于 2012-06-21T13:42:51.373 回答