Quantcast
Viewing all articles
Browse latest Browse all 3

Microsoft ASP.NET MVC

Microsoft ASP.NET MVC is the latest technology from Microsoft that has been built on top of the ASP.NET 3.5 framework.

Microsoft Says:

ASP.NET MVC enables you to build Model View Controller (MVC) applications by using the ASP.NET framework. ASP.NET MVC is an alternative, not a replacement, for ASP.NET Web Forms that offers the following benefits:

  • Clear separation of concerns
  • Testability – support for Test-Driven Development
  • Fine-grained control over HTML and JavaScript
  • Intuitive URLs

Source: http://www.asp.net/mvc/

There’s a lot to be said about ASP.NET MVC and so far, I’m only just scratching the surface of what’s possible with this new technology.

Where can I get Microsoft ASP.NET MVC?

Version 1.0 has just been released and you can get it here: Download Microsoft ASP.NET MVC

So what’s the point?

For some time now I’ve held that position that ASP.NET is one of the most powerful frameworks around for building web applications but there’s just something missing. That something, to me, has been the level of control that ASP.NET has offered upto this point . Not only with the way many of the controls render crappy HTML output but also in the way the presentation layer was handled all-together.

Coming from a front-end background originally and having been around and learning during the majority of the cross over from invalid table based design to the more modern CSS and semantics based web of today, I’ve always been extremely picky about what my code outputs. Having also been a bit of a perfectionist for most of my life, the concept of MVC (Model-View-Controller) has always been something that appealed to me and in the early days of doing ASP 3.0 (classic ASP)  I spent a couple of months developing my own framework which might now be referred to as a type of templating system. HTML in HTML files, ASP in ASP files, Javascript in Javascript files, MasterPage’s…and so on.

Another item on my wish list for future implementations of ASP.NET was URL-Rewriting. For the past 6 years I’ve been using ISAPI Rewrite to manage and manipulate URLs in order to create a clear separation between a document (or application) and it’s URI. In the olden days, people used to get married and stay together for life but these days people are more free to choose and do what makes them happy. The same is now also true in ASP.NET MVC with it’s native URL Re-Writing structure. No longer are web applications bound by their document structure but instead we now have the kind of flexibility that lets us create URLs that are intuitive and our users will understand.

As a proponent of TDD (Test Driven Development) I’m also really pleased to hear that ASP.NET MVC now includes support for unit testing. With nUnit integrating into Visual Studio nicely, testing has been relatively simple for some time but anything that adds to this and makes testing even easier and thus more likely to occur is a bonus. Once I’ve played around a little more with the testing support in ASP.NET MVC I’ll write more on this topic but for now, It’s good to see the Microsoft guys supporting a methodology that is not only beneficial but a real necessity in this world of high speed development and flexible working practices.

Will ASP.NET MVC replace WebForms?

At Microsoft they’re promoting MVC as an alternative to WebForms and not a replacement and I think this is a smart move.

There are many benefits to having fine-grain control over you application and there’s also a time and place to use WebForms depending on the context and variables in question. One concept I like the idea of is combining the two technologies so that you can create quick and stylish administration functionality using WebForms and then the customer facing website using MVC. I think it’s a matter of what you want to achieve and what you have available to you as a developer and as a business.

No doubt there will be more posts to come on Microsoft ASP.NET MVC as I delve deeper into it and learn some new things. For now, suffice to say I’m impressed and very excited about this new technology.

What are your thoughts?


Viewing all articles
Browse latest Browse all 3

Trending Articles