Profile photo
Submitted by Bikram Shrestha
on October 8th, 2012 at 15:42:48 EST

MVC - Difference between Html.RenderPartial vs Html.RenderAction

What is difference between Html.RenderPartial vs Html.RenderAction in ASP.NET MVC framework?

Profile photo
Replied by RaKumar
on October 11th, 2012 at 15:13:14 EST
When parent view calls Html.RenderPartial("PartialView"), it will render partial view specified to the screen. It will not execute any controller logic. However, model can be passed from parent view to child partial view.

When parent view calls Html.RenderAction("ActionName"), it will call the action name specified in the controller. Action can perform interaction with the model and render the view / partial view.
Accepted Answer