I’ve been experimenting with using ASP.NET MVC inside a standard ASP.NET Web Application (Web Forms). I really like what’s been released with MVC 1.0 and can see places where existing apps would benefit from the features. Plus, having just finished Professional ASP.NET MVC 1.0
from Wrox (see my book review), I couldn’t wait to start using it.
The last chapter of the book, Chapter 12, entitled “Best of Both Worlds: Web Forms and MVC Together,” discusses configuring an ASP.NET Web Application to support the new ASP.NET MVC features. Note that adding Web Forms to an ASP.NET MVC project template is much easier (meaning no configuration/reference changes), since ASP.NET MVC is built on top of the ASP.NET Framework. Anyway, after referencing the required libraries, creating the necessary directories, and updating the web.config, you’ll find that templates for the MVC items (e.g. Controllers, Views), are missing as options. More...