使用MVC3中的Razor视图引擎,
Is it possible to render a legacy ascx?
我期待能够做一些像:
@Html.RenderPartial("Footer.ascx")
解决方法
是.改为:
@Html.Partial("Footer")
要么
@{ Html.RenderPartial("Footer"); }
使用MVC3中的Razor视图引擎, Is it possible to render a legacy ascx? 我期待能够做一些像: @Html.RenderPartial(Footer.ascx) 是.改为: @Html.Partial(Footer) 要么 @{ Html.RenderPartial(Footer); }
使用MVC3中的Razor视图引擎,
Is it possible to render a legacy ascx?
我期待能够做一些像:
@Html.RenderPartial("Footer.ascx")
是.改为:
@Html.Partial("Footer")
要么
@{ Html.RenderPartial("Footer"); }