Render a partial view from the content page ?

Sunny.Sagar
Posted by Sunny.Sagar under ASP.NET MVC category on | Points: 40 | Views : 2431
<hr />
@Html.Partial("_GetFileName")
<hr />
@{ Html.RenderPartial("_GetFileName"); }
<hr />
@Html.Partial returns MvcHtmlString that is the output of the Partial view.
It has been called in the code block as @Html.RenderPartial method returns void.

Comments or Responses

Login to post response