如何整合ASP.Net Web表单的网站,一个ASP.Net MVC Web应用程序? [英] How to Integrate ASP.Net Webforms website with an ASP.Net MVC web application?

查看:131
本文介绍了如何整合ASP.Net Web表单的网站,一个ASP.Net MVC Web应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎么会在一个主网站运行他们两个,说www.example.com,这是书面和部署使用Visual Studio的ASP.Net MVC Web应用程序项目,并在一个ASP.Net Web窗体的网站,会从主站点的子目录中运行,说www.example.com/myapp?

How would I run both of them under one main website, say www.example.com, which is written and deployed using a Visual Studio ASP.Net MVC web application project, and where an ASP.Net Web Forms website, would run from a subdirectory of the main site, say www.example.com/myapp?

推荐答案

请参阅Hanselman的<一个href=\"http://www.hanselman.com/blog/PlugInHybridsASPNETWebFormsAndASPMVCAndASPNETDynamicDataSideBySide.aspx\">blog帖子。其基本思想是,你添加一个普通的WebForm你的MVC项目,然后告诉路由引擎忽略路径做MVC路由时。

See Hanselman's blog post. The basic idea is that you add a regular WebForm to your MVC project, then tell the routing engine to ignore that path when doing MVC routing.

这篇关于如何整合ASP.Net Web表单的网站,一个ASP.Net MVC Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆