asp.net-mvc-3 – MVC3剃须刀:是否可以渲染传统的ASCX?
发布时间:2020-12-30 15:26:47 所属栏目:asp.Net 来源:互联网
导读:使用MVC3中的Razor视图引擎, Is it possible to render a legacy ascx? 我期待能够做一些像: @Html.RenderPartial(Footer.ascx) 是.改为: @Html.Partial(Footer) 要么 @{ Html.RenderPartial(Footer); }
使用MVC3中的Razor视图引擎,
我期待能够做一些像: @Html.RenderPartial("Footer.ascx") 解决方法是.改为:@Html.Partial("Footer") 要么 @{ Html.RenderPartial("Footer"); } (编辑:十堰站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 受asp.net MVC启发的更好的WebForms
- asp.net-mvc – 无法在Web服务器上启动调试. Web服务器找不
- 如何为ASP.NET身份设置密码规则?
- asp.net-mvc-3 – 在ASP.NET MVC 3中覆盖/禁用授权
- asp.net-mvc – 带vNext的MVC 6:我们还需要Global.asax吗?
- asp.net – 如何在gridview中将navigateurl添加到超链接
- ASP.NET 5针对dnx451 / dnx46性能
- asp.net-mvc – ASP.NET捆绑/分类:包括动态生成的Javascri
- asp.net-core – .net核心自定义身份验证中的User.Identity
- asp.net – WebForms:MasterPages中的动态(或绝对)脚本标记
推荐文章
站长推荐
- asp.net – Ajax上的Identity Server 3 – 401而
- asp.net – 动态创建和共享Google云端硬盘文件夹
- asp.net-core – ASP.Net 5类库中的EntityFramew
- asp.net中让Repeater和GridView支持DataPager分页
- asp.net – 从我的GridView行返回一个对象
- asp.net – 为什么HttpContext.Current.User.Ide
- asp.net-mvc – 在asp.net mvc 3剃刀中识别html助
- asp.net – 在Azure网站上启用gzip压缩
- ASP.NET和System.Diagnostics跟踪 – 我错过了什
- asp.net – compilation debug =“true”和发布模
热点阅读