What is partial view in Asp.Net Mvc?

 Posted by Sumank on 5/15/2013 | Category: ASP.NET MVC Interview questions | Views: 8378 | Points: 40
Answer:

A partial view is like as user control in Asp.Net web form. Partial views are reusable views like as Header and Footer. It has .csHtml extension.
Partial and RenderPartial Html method renders partial view in Mvc razor.

<div>@Html.Partial("_Comments")</div>
<div>@ { Html.RenderPartial("_Comments") } </div>


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response