I am developing one new area of a fairly large web application using MVC3 and Razor, where the rest of the application is ASP.NET 4 Web Forms based. Can I include my MVC components in this application, and what do I have to do to achieve this?
Our experience has been that WebForms and MVC work well side-by-side in the same application, but not mixed. In other words, each page can either be WebForms or MVC, but it can't very easily include elements of both. The two main work-arounds I've found are:
We use the latter approach.
http://www.packtpub.com/article/mixing-asp.net-webforms-and-asp.net-mvc
That should get you on the right road. If it was me personally though, i'd add a new project to your solution that is MVC, you can then just configure a Virtual Directory in IIS /MVCApp
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With