如何在asp.net MVC3中使用旧视图? [英] How to use an old view inside a new one with asp.net MVC3?
本文介绍了如何在asp.net MVC3中使用旧视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
i have created an MVC3 project with Razor engine. I need to implement a TabPanel in each field of the tabPanel there is a specific view already defined in this project.
How can I call directly the old defined views (in .aspx) in the new TabPanel fields (.cshtml)? I cant do some copy paste because the two files type are different
推荐答案
你将不能同时使用它们。 />
但是,请尝试使用ASP.NET MVC 3 混合Razor视图和WebForms母版页 [< a href =http://www.hanselman.com/blog/MixingRazorViewsAndWebFormsMasterPagesWithASPNETMVC3.aspxtarget =_ blanktitle =New Window> ^ ] - 有一个可能!
You won't be able to use both together.
However, try Mixing Razor Views and WebForms Master Pages with ASP.NET MVC 3[^] - there is a "maybe"!
这篇关于如何在asp.net MVC3中使用旧视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文