How to Integrate ASP.Net Webforms website with an ASP.Net MVC web application?

为君一笑 提交于 2020-01-03 11:00:23

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/519875/how-to-integrate-asp-net-webforms-website-with-an-asp-net-mvc-web-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!