我是 asp.net mvc 3 的新手。如何通过调用操作在 div 中呈现视图:
html:
<div id="dialog-modal" title="Basic modal dialog">
@Html.RenderAction("Popup","Home");
</div>
C#:
public ActionResult Popup()
{
return PartialView();
}
我收到一个错误:
The best overloaded method match for 'System.Web.WebPages.WebPageExecutingBase.Write(System.Web.WebPages.HelperResult)' has some invalid arguments