Render partial from different folder (not shared)

来源:互联网 发布:挺进大别山 知乎 编辑:程序博客网 时间:2024/05/24 15:40

http://stackoverflow.com/questions/208421/render-partial-from-different-folder-not-shared

Just include the path to the view, with the file extension.

Razor:

@Html.Partial("~/Views/AnotherFolder/Messages.cshtml", ViewData.Model.Successes)

0 0
原创粉丝点击