I\'m trying to get a partial view to render using Razor in MVC5. When I use
@{ Html.RenderPartial(\"ViewName\", model); }
I get the parser erro
You may also use @Html.Partial("~/View/Home/myview.cshtml")
@Html.Partial("~/View/Home/myview.cshtml")
It returns string while Html.RenderPartial calls Write internally, and returns void.
Html.RenderPartial