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

后端 未结 13 807
感动是毒
感动是毒 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

    More about the question:

    "When Html.RenderPartial() is called with just the name of the partial view, ASP.NET MVC will pass to the partial view the same Model and ViewData dictionary objects used by the calling view template."

    “NerdDinner” from Professional ASP.NET MVC 1.0

提交回复
热议问题