mservais
mservais

Reputation: 570

Sitecore 6.6 and RenderPartial

It doesn't seem like Sitecore likes the use of Html.RenderPartial. If I try to render a partial view instead of using a Sitecore Placeholder I get and error:

c:\Sitecore\milwaukeetool\Website\Views\Products\Index.cshtml(13): error CS1502: The best overloaded method match for 'System.Web.WebPages.WebPageExecutingBase.Write(System.Web.WebPages.HelperResult)' has some invalid arguments

Has anyone had success doing a RenderPartial in Sitecore 6.6?

Upvotes: 1

Views: 364

Answers (1)

mservais
mservais

Reputation: 570

Need to fully qualify the path of the partial view in the RenderPartial method as Sitecore seems to search /Views/Sitecore if not fully qualified.

Upvotes: 2

Related Questions