PDC 2008: First in-depth look at ASP.NET MVC

By Scott M. Fulton, III | Published October 27, 2008, 9:01 PM

PDC 2008 story bannerAt Day 1 of PDC 2008 in Los Angeles, attendees got their first look at a technology Microsoft introduced earlier this month into beta: a new way for building reformed Web applications.

The Web site StackOverflow.com is the latest example of a fully operational Web site, running today out of beta, using a technology from Microsoft that is still in beta: ASP.NET MVC, the new compartmentalization model for content-driven Web site programming.

This afternoon, Microsoft senior program manager Phil Haack showed attendees how many of the functions of StackOverflow could be essentially duplicated -- or shamelessly ripped off -- in about the time it takes to give a talk at PDC. StackOverflow takes comments from developers who are searching for solutions to specific problems; the content of the site, therefore, is like a BBS. It's made up principally of comments from users, who may not necessarily be members. Using ASP.NET MVC, a developer can generate complex queries that produce models of the underlying data. Those models can then be processed using views, which render the comments in very clean HTML code that can be cleaned up using CSS.

Microsoft senior program manager for ASP.NET MVC Phil Haack with StackOverflow.com proprietor Jeff Attwood, at Day 1 of PDC 2008.

BETA CAPSULE ASP.NET MVC

What It Is
An extension to ASP.NET that enables Web developers to make their work more sensible and extensible by compartmentalizing the functions of managing and displaying content into three discrete actors: the model, the view, and the controller.

How It Works
For the Visual Studio programmer, ASP.NET MVC is a new Web Application Project (WAP) type. Once engaged, it enables him to build the controller, which is effectively the producer of the content of the Web page. Its job is to process requests from the user; through those requests, the controller generates the model of the data for the site. This is the type of content for which sites rely on content management systems of one form or another; here, the controller performs the management functions at the code level.

At runtime, the user requests result in the controller creating views of the data. How the site displays those views depends on specific view modules which are named for each view. The product is pure HTML, though CSS can (and obviously should) be employed to enable formatting; JavaScript scripts may also be helpful.

What It Means
The absolute division of labor in the development of a content-driven Web site could easily drive down development time. That said, the use of MVC in ASP.NET is nowhere near automatic; its senior program manager at Microsoft, Phil Haack, compared the differences between programming in ASP.NET 3.0 and ASP.NET MVC to driving a manual transmission and an automatic. With a stickshift, Haack said, you have more driving fun, but you have to pay more careful attention to how your brakes are set and what your RPM is -- factors on a much lower level.

For Microsoft, ASP.NET MVC helps score more points with the open source community -- which have contributed ideas to the project, as well as JavaScript scripts that Microsoft tends to use with it (jQuery being one of them); and the standards community which welcomes (or at least should welcome) the trend toward sensibility and practicality. It's also a low-intensity project that requires a minimal development team at the company (Haack works with just a handful of other people), that has a maximal payoff in terms of visibility and developer interest.

View comments by with a score of at least

Report: Microsoft to randomize Europe's browser screen choices

The fact that "A" is for "Apple" was apparently at the heart of browser vendor objections to Microsoft's alternative to listing IE first.

Acer eclipses Dell for #2 spot in global PC shipments, says iSuppli data

It literally does look like a 360-degree turnaround in Dell's fortunes, as the bells of bad tidings now toll solely for Dell.

Microsoft, don't hang up on Windows Mobile, but do call for help

Only a Manhattan Project can save Microsoft's phone strategy now.

See ya later, WinMo: Microsoft's mobile strategy needs a reboot

Carmi Levy | Wide Angle Zoom: Hands up if you're considering upgrading to a Windows phone for the holidays...Anybody?

Playing catch-up in 2010: Windows Mobile, BlackBerry, and Symbian

Microsoft, RIM, and Nokia are each working on improved mobile operating systems. But could these efforts add up to too little, too late?

Will Nokia's plans further alienate American consumers?

A look at Nokia's plans for the coming years does little to shine up the company's increasingly dull image.

Bing bonked by service outage Thursday, Microsoft configured the wrong server

It's always nice to have a backup, but it's even nicer to remember which one is the backup. That's the lesson Bing's admins learned yesterday evening.

Survey reveals there are more women then men, including on social networks

If you think you can market your products and services online as though you're selling car batteries in the middle of halftime, think again. And again.

Android team updates 'Donut' and 'Eclair' SDKs

The Android SDK includes components which optimize app development for each version of the mobile operating system. Today, the 1.6 and 2.0 components got updates.

The Black Screen Syndrome, or, Tech news in search of the apocalypse

Scott Fulton On Point: This is a story about something that should not have been a story, about something that at one time was a story.

Online advertising evolves away from display, toward interactive software

Marketing departments and agencies are increasingly establishing positions for "creative technologists" who can steer designers and developers toward platforms that enable direct connections with consumers.