2012-09-28 2 views
1

Sitecore에서 Html.RenderPartial을 사용하는 것처럼 보이지 않습니다. Sitecore 자리 표시자를 사용하는 대신 부분 뷰를 렌더링하려고하면 다음과 같은 오류가 발생합니다.Sitecore 6.6 및 RenderPartial

c : \ Sitecore \ milwaukeetool \ Website \ Views \ Products \ Index.cshtml (13) : 오류 CS1502 : 가장 오버로드 된 메서드 'System.Web.WebPages.WebPageExecutingBase.Write (System.Web.WebPages.HelperResult)에 대한 일치'에 잘못된 인수가 있습니다.

Sitecore 6.6에서 RenderPartial을 성공적으로 수행 한 사람이 있습니까?

답변

2

RenderPartial 메서드에서 부분 뷰의 경로를 정규화해야하는 이유는 Sitecore가 정규화되지 않은 경우/Views/Sitecore를 검색하는 것처럼 보이기 때문입니다.

+0

답변으로 표시 –