views:

112

answers:

2

does anybody knows what's differences between Html.RenderAction and Html.Action?

+1  A: 

Html.Action – Outputs String

Html.RenderAction – Renders Directly to Response

Response stream is the better performance from string output

Megawolt
So when would you use Html.Action if RenderAction gives better performance?
Vince
+1  A: 

The difference between the two is that Html.RenderAction will render the result directly to the Response (which is more efficient if the action returns a large amount of HTML) whereas Html.Action returns a string with the result.

check out this link for a detailed explanation

VoodooChild