search

Home  >  Q&A  >  body text

mvc - razor Html.Partial and Html.RenderPartial how to choose and why?

I saw information on the Internet that Html.Partial returns an MvcHtmlString, while html.RenderPartial returns nothing and writes the result to HtmlHelper.ViewContext.Writer. I don't really understand this explanation, and I feel like there is a mechanism behind the difference between the two methods. Comrades who have a deeper understanding of this, please explain in detail the essential differences between the two, I would be very grateful! !

给我你的怀抱给我你的怀抱2810 days ago610

reply all(1)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-05-16 17:08:16

    Poke me

    reply
    0
  • Cancelreply