当前位置: 代码迷 >> 综合 >> Render partial from different folder (not shared)
  详细解决方案

Render partial from different folder (not shared)

热度:65   发布时间:2024-01-10 02:15:09.0

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)

  相关解决方案