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

前端 未结 7 1304
清酒与你
清酒与你 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:51

    As you've probably noticed with the above answers, yes this is very possible to do.

    I've actually had to do this on my current project. I was able to get approval to add MVC to our application, but only in the administration section (to limit the risk of affecting current members coming to our site).

    The biggest problem I had was converting my Web Site to a Web Application, but once that was done, things were pretty straight forward adding MVC side-by-side our classic code-behind web pages.

    The trick for me was to make my MVC pages look as similar as possible to my code-behind pages so the transition looked as seamless as possible.

提交回复
热议问题