renderpartial

renderpartialrenderpartial
  1. It also introduces members such as RenderPartial , which can be used to render a portion of the user interface defined within a partial view as opposed to the full page .

    它同样引入了另外一些成员,例如RenderPartial方法,它能够使用定义在一个部分视图中而不是一个完整页面中的内容,来生成用户界面的一部分。

  2. So , while I like the notion of RenderPartial for some scenarios , A better example would have been to render a view that outputs simple XML or , even better , JSON .

    因此,尽管我在某些场景下会喜欢RenderPartial之类的方法,但是更好的例子应该是通过生成一个视图来输出简单的XML,如果是JSON那就更好不过了。