【问题标题】:Sitecore 6.6 and RenderPartialSitecore 6.6 和 RenderPartial
【发布时间】:2012-09-28 14:37:27
【问题描述】:

Sitecore 似乎不喜欢使用 Html.RenderPartial。如果我尝试渲染部分视图而不是使用 Sitecore 占位符,我会得到错误:

c:\Sitecore\milwaukeetool\Website\Views\Products\Index.cshtml(13): 错误 CS1502: 最佳重载方法匹配 'System.Web.WebPages.WebPageExecutingBase.Write(System.Web.WebPages.HelperResult )' 有一些无效的参数

有没有人在 Sitecore 6.6 中成功执行过 RenderPartial?

【问题讨论】:

    标签: sitecore renderpartial


    【解决方案1】:

    需要在 RenderPartial 方法中完全限定部分视图的路径,因为如果不完全限定,Sitecore 似乎会搜索 /Views/Sitecore。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-12-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-20
      相关资源
      最近更新 更多