摘要: You can share views between controllers by putting them into the Views/Shared folder. Each controller can then render that view by name.You can render a partial view (which can be shared between controllers as in (1)) within the current view using Html.Partial().You can use Html.Action() to invoke a 阅读全文
posted @ 2012-09-28 10:53 webglcn 阅读(309) 评论(0) 推荐(0) 编辑
摘要: Refer to http://www.em64t.net/2010/12/razor-html-renderpartial-vs-html-partial-html-renderaction-vs-html-action-what-one-should-use/Html.RenderAction VS Html.ActionThe difference between the two is that Html.RenderAction will render the result directly to the Response (which is more efficient if the 阅读全文
posted @ 2012-09-28 10:35 webglcn 阅读(257) 评论(0) 推荐(0) 编辑