如何将 ASP.Net Webforms 网站与 ASP.Net MVC Web 应用程序集成?

问题描述 投票:0回答:1

我如何在一个主网站(例如 www.example.com)下运行它们,该网站是使用 Visual Studio ASP.Net MVC Web 应用程序项目编写和部署的,并且 ASP.Net Web 表单网站将在其中运行主站点的子目录,例如 www.example.com/myapp?

asp.net asp.net-mvc web-applications integration
1个回答
5
投票

请参阅 Hanselman 的博客文章。基本思想是,将常规 WebForm 添加到 MVC 项目中,然后告诉路由引擎在进行 MVC 路由时忽略该路径。

© www.soinside.com 2019 - 2024. All rights reserved.