2012-09-28 51 views
1

Sitecore似乎並不喜歡使用Html.RenderPartial。如果我嘗試使用Sitecore的佔位符的渲染局部視圖,而不是我得到的和錯誤:Sitecore 6.6和RenderPartial

C:\ Sitecore的\ milwaukeetool \網站\查看\產品\ Index.cshtml(13):錯誤CS1502:最好的重載方法匹配'System.Web.WebPages.WebPageExecutingBase.Write(System.Web.WebPages.HelperResult)'有一些無效參數

有沒有人在Sitecore 6.6中做RenderPartial的成功?

回答

2

需要完全限定RenderPartial方法中部分視圖的路徑,因爲Sitecore似乎在搜索/視圖/ Sitecore(如果未完全限定)。

+0

將此標記爲答案 –