ASP.NET MVC 4 Developer Preview announced at BUILD

Yesterday I wrote this post but forgot to mention about something that is very close to my heart Smile ASP.NET MVC.  ASP.NET MVC has been evolving rapidly and within 2 years, we already have had 4 major releases (MVC 1, MVC 2, MVC 3 & MVC 3 Reloaded Smile)

So, it doesn’t go as a surprise that MVC 4 is on the cards and the developer preview was unveiled at BUILD Conference.  What does MVC 4 offer for web developers?

Enhanced Default Project Template

If you are bored with the vanilla blue template that comes with the “File – New – ASP.NET MVC” Project that you have been living with over the last year, here is a refresher.

Once you install the MVC 4 Developer Preview through the Web Platform Installer (direct download link is here ), you get to see an additional project template in Visual Studio 2010, while firing “File – New Project” dialog, which is “ASP.NET MVC 4 Web Application” (Trivia:  Note this is my 100th MVC Project.  Agreed around 50 of them were created but never used Smile with tongue out)

image

When you click on it, you get to see one more option other than the “Empty”, “Intranet” & “Internet” Templates

image

While MVC 3 has been good enough while rendering on mobile devices, its never the same and sometimes I have built sites which look ok but not great on hand held devices.  The new “Mobile Application” template specifically is built for MVC 4 applications that are targeted for Mobile Devices.  This is based on jQuery Mobile.

However, if we chose the regular “Internet Application” it provides the following new UI

image

 This definitely looks better than the old dark blue and white template.  Couple of things to note

1. This one uses the new “System.Web.Providers” for the default Membership configuration and automatically configures all of the other attributes such as Profile, Role, SessionState to use the “DefaultConnection” connection string.  So, there is just one place where you have to modify the connection string and all of the above settings would point to that database.

2. It uses an AJAX Login wizard so you no longer have to navigate to /Account/Logon for logging in your users (almost all sites have stopped using this legacy behavior)

It also uses Adaptive rendering to render it better on smaller form factors such as phones and hand held devices, using jQuery Mobile.

Few more enhancements such as Recipes, Asynchronous Controllers etc., provide better development experience.  I am examining some of those and would write individual  posts on each of these.   Meanwhile you can get a high level overview of the same in this whitepaper

Also, you can watch Phil Haack’s session at BUILD on MVC 4 Developer Preview

Cheers!!!

Print | posted on Wednesday, September 21, 2011 9:25 AM

Comments on this post

# re: ASP.NET MVC 4 Developer Preview announced at BUILD

Requesting Gravatar...
Hi,
I am newbie and have a question, If I want to create a web application which I wish to have a good layout for both usual web application and Mobile applicatin, then I have to create two different applications?
Left by Kourosh on Sep 21, 2011 1:30 PM

# re: ASP.NET MVC 4 Developer Preview announced at BUILD

Requesting Gravatar...
Really great! Heading over to the information page now. Full installer without WebPI please! -Kyle Thomas Glasser
Left by Kyle Thomas Glasser on Dec 16, 2011 7:50 PM

# re: ASP.NET MVC 4 Developer Preview announced at BUILD

Requesting Gravatar...
CompTIA CompTIA CCA-410 vce IT Technician certification CISA vce exams can work as a great initiative for a flourished IT career and will definitely open up many new career prospects for you.
Left by Allenwood on Feb 04, 2014 2:34 PM

Your comment:

 (will show your gravatar)