Can “classic” ASP.NET pages and Microsoft MVC coexist in the same web application?

前端 未结 7 1303
清酒与你
清酒与你 2021-01-02 02:32

I\'m thinking about trying out MVC later today for a new app we\'re starting up, but I\'m curious if it\'s an all or nothing thing or if I can still party like it\'s 2006 wi

7条回答
  •  半阙折子戏
    2021-01-02 02:54

    Yes, it is very much possible for MVC pages to coexist with asp.net web forms. I implemented that in my existing asp.net application for adding new features. We need to make sure of referring the MVC DLLs, registering routing tables for URL routing and configuring the assemblies and namespaces in Web.config file.

提交回复
热议问题