The difference between Html.Action and Html.RenderAction

后端 未结 3 708
独厮守ぢ
独厮守ぢ 2020-12-09 01:49

I\'ve been trying to figure out the difference between RenderAction and Action. I don\'t know if I\'m so concerned about the differences at this point, as to why I can\'t ge

3条回答
  •  自闭症患者
    2020-12-09 02:51

    From Phil Haack:

    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.

提交回复
热议问题