In the code below, what is the difference between RenderPartial and RenderAction?

Advertisement

@{
Html.RenderAction(“Add”);
Html.RenderPartial(“Add”);
}

  • RenderPartial will call an action method of the current controller and render a result inline. RenderAction will render the specified view inline without calling any action method.
  • RenderAction will call an action method of the current model and render a result inline. RenderPartial will render the specified view inline without calling any action method.
  • RenderAction will call an action method of the current controller and render a result inline. RenderPartial will render the specified view inline without calling any action method.
  • RenderPartial will call an action method of the current model and render a result inline. RenderAction will render the specified view inline without calling any action method.
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment


Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend