Difference between Html.RenderAction and Html.Action

Sasha picture Sasha · Jun 2, 2010 · Viewed 26.5k times · Source

Does anybody know what's the difference between Html.RenderAction and Html.Action?

Answer

Megawolt picture Megawolt · Jun 2, 2010

Html.Action() – Outputs string

Html.RenderAction() – Renders directly to response stream

If the action returns a large amount of HTML, then rendering directly to the response stream provides better performance than outputting a string.