Articles : Page 1 of 1
-
Integrating ASP.NET MVC 3 into existing upgraded ASP.NET 4 Web Forms applications
Jan 1106I got an interesting question recently from a gentleman who has an existing ASP.NET WebForms 2.0 application that works just fine. He's upgraded it to ASP.NET 4 and it still works great, but now he wants to add some ASP.NET MVC pages to it. He doesn't want to rewrite the application. A few years ago I did a post on Hybrid ASP.NET applications. The goal was to reinforce the point that you can have ASP.NET applications that are both WebForms and MVC (as well as WCF and ASMX Web Services and o...
-
ASP.NET MVC 3 Preview 1 Released – Channel 9 Video and Hanselminutes Podcast 224, Oh My!
Jul 1027Phil and friends released ASP.NET MVC 3 Preview 1 today. I snuck into the office of Phil Haack and Morgan the Canadian Intern to talk about the release of ASP.NET MVC 3 Preview 1 and some of the cool futures stuff that Morgan (and our fleet of interns) is working on. This video isn't only about MVC as Morgan's working on some cool CSS Sprites stuff that works nicely in WebForms that you should check out as well. Also, my two-hundred-and-twenty-fourth podcast is up and I talk more in depth ...
-
Use Razor as ASP.NET MVC ViewEngine
Jul 1010Since the release of Razor I could not manage time to give a deep dive into this new framework. Last night, I started to explore, the idea was to create ASP.NET MVC View Engine, yes I know the official version is coming up end of this month, but it will give me enough details of the Razor internals in the mean time. Part of the goal was to port the default ASP.NET MVC application in Razor. And here is the basic version: _Master.cshtml <!DOCTYPE html> <head> <title> @RenderSection("title")...
-
How to add an ASP.NET MVC 2 project to an existing ASP.NET Web forms application
May 1026In this 'how to' I will demonstrate how to integrate an ASP.NET MVC 2 project to an ASP.NET WebForms application that already exists. There are many weird ungoogleable issues and extra tips that haven't been covered elsewhere. I hope this guide helps you get started. 1. Add referencesRight click on your web root project in Visual Studio (2010 in my case) and add the following references: System.Web.Routing System.Web.Abstractions System.Web.Mvc 2. ConfigurationMake your web.config look like...
- 1

