Currently I'm rewriting an application to use ASP.NET MVC4.
I'm using C# with razor views.
I have some legacy Web Forms pages that I'd like to include unmodified in my application.
I'd like them to appear seamlessly with in my _Layout
.
Is there a way I can render a Web Forms page within an MVC Layout that will still allow things like post backs to work?
目前我正在重写一个应用程序来使用ASP。净MVC4。我正在使用c#和剃刀视图。我有一些遗留的Web表单页面,我希望在我的应用程序中包含未修改的。我希望它们在_Layout中无缝地显示。是否有一种方法可以在MVC布局中呈现Web表单页面,它仍然允许像post back这样的东西工作?
1 个解决方案
#1
2
Take a look at some of the information here:
看看这里的一些信息:
Mixing Razor Views and WebForms Master Pages with ASP.NET MVC 3
将剃刀视图和WebForms母版页面与ASP混合。净MVC 3
Integrating ASP.NET MVC 3 into existing upgraded ASP.NET 4 Web Forms applications
结合ASP。NET MVC 3升级为现有的升级版ASP。NET 4 Web Forms应用程序。
#1
2
Take a look at some of the information here:
看看这里的一些信息:
Mixing Razor Views and WebForms Master Pages with ASP.NET MVC 3
将剃刀视图和WebForms母版页面与ASP混合。净MVC 3
Integrating ASP.NET MVC 3 into existing upgraded ASP.NET 4 Web Forms applications
结合ASP。NET MVC 3升级为现有的升级版ASP。NET 4 Web Forms应用程序。