摘要:
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 阅读全文
摘要:
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 阅读全文