gpt4 book ai didi

asp.net-mvc-3 - MVC3 Razor : Is it Possible to Render a Legacy ASCX?

转载 作者:行者123 更新时间:2023-12-03 03:41:41 25 4
gpt4 key购买 nike

使用 MVC3 中的 Razor View 引擎,

Is it possible to render a legacy ascx?

<小时/>

我期望能够做这样的事情:

@Html.RenderPartial("Footer.ascx")

最佳答案

是的。试试这个:

@Html.Partial("Footer")

@{ Html.RenderPartial("Footer"); }

关于asp.net-mvc-3 - MVC3 Razor : Is it Possible to Render a Legacy ASCX?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6538869/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com