Html.Partial vs Html.RenderPartial & Html.Action vs Html.RenderAction

后端 未结 13 808
感动是毒
感动是毒 2020-11-22 04:03

In ASP.NET MVC, what is the difference between:

  • Html.Partial and Html.RenderPartial
  • Html.Action and Html.
13条回答
  •  故里飘歌
    2020-11-22 04:09

    Difference is first one returns an MvcHtmlString but second (Render..) outputs straight to the response.

提交回复
热议问题