DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
What's in store for DevOps in 2023? Hear from the experts in our "DZone 2023 Preview: DevOps Edition" on Fri, Jan 27!
Save your seat
  1. DZone
  2. Coding
  3. Frameworks
  4. The History of ASP.NET MVC, So Far

The History of ASP.NET MVC, So Far

Simone Chiaretta user avatar by
Simone Chiaretta
·
Jul. 22, 12 · Interview
Like (0)
Save
Tweet
Share
8.67K Views

Join the DZone community and get the full member experience.

Join For Free

This post is a mile high overview of the history of ASP.NET MVC, the features it brought with the various versions and the extensibility points introduced.

I am starting to work on both a series of webcasts and articles and I was doing some preparatory work, collecting information on the various features and extensibility points that got into the various (official) releases of ASP.NET MVC, so I thought it could have been useful to share my little summary.

There have been 3 major official releases, and 1 small tool update.

ASP.NET MVC 1.0

The first official release, dated MIX 2009, brought all the core features of the framework, which made their way through the years till today:

  • Obviously, the MVC concept, with the streamlined processing pipeline and the separation of the processing of the request (in the Controller) and the rendering of the output (in the View)
  • The concept of routing (then made into the official framework)
  • Lightweight helpers for rendering HTML tags
  • Ajax helpers to easily ajaxify links and forms
  • Automatic binding of posted forms to .NET objects and a kind of model validation

This was a huge step toward a new web, but the first release needed a bit too much of infrastructural development in order to be productive in enterprise scenarios and in big applications. Luckily ASP.NET MVC was the first Microsoft product to really be extensible. Most of the core components could be extended or even totally replaced with your own implementation: for example, Dependency Injection was not supported, so you had to developed your own custom controller factory to create controllers based on a IoC container. Also there was no default model implementation in ASP.NET and people expecting something like RoR were a bit disappointed.

ASP.NET MVC v2

The following year, same timeframe (MIX 2010), the second version of the framework came out. The theme of this update was enhancing productivity and making maintenance easier in bigger applications:

  • Model validation based on attributes, both server and client side
  • Areas to partition bigger applications
  • Html Templated helpers, to automatically render edit forms and display pages based on the model and attributes applied on it
  • Asynchronous Controllers
  • Lambda based Html Helpers to remove most of the "magic strings" previously needed in html helpers

In this version a few other extensibility were introduced in addition to the ones already available in ASP.NET MVC 1.0:

  • Model Metadata Provider and ModelValidationProvider
  • Validation Attributes and validation logic
  • Custom templates

The inclusion of the model validation and display attributes was also a first step toward some kind of support for a default model inside ASP.NET MVC.

ASP.NET MVC 3

At the beginning of the year, less than a year after the previous version, version 3 was released, together with a bunch of other pretty interesting tools, like NuGet, IIS Express and SQL Server Express.

The new features introduced with this latest version:

  • Works only on .NET4
  • Unobtrusive javascript validation and general better javascript love
  • Remote validation
  • Dependency Resolver
  • The new Razor view engine
  • Global Filters

In the context of extensibility, a few more were introduced:

  • Service Locator
  • Dependency Resolver
  • Filter Provider
  • IValidatableObject

Additionally, a new "New Project" dialog that allows you to choose different project templates as base for your ASP.NET MVC 3 application was introduced. It includes the usual template (with user management and login pages) but is open for including other project templates very easily.

ASP.NET MVC Tool Update

Finally, as tradition, they released something also at MIX 2011: no changes to the library itself, but just an upgrade to the tooling around MVC:

  • They integrated the great MvcScaffolding into Visual Studio, to easily create controllers and CRUD views based on the model
  • Libraries included by default (jQuery, jQuery UI and modernizer for example) are included as NuGet packages so that they can be easily upgraded
  • Entity Framework CodeFirst is included as default data access library in the default project template
  • The default template is HTML5 enabled (if a checkbox is selected, views will have the semantic HTML5 tags)

With this last update ASP.NET MVC finally had a default implementation of the M part of the pattern: Entity Framework CodeFirst with automatic creation of the DB schema, attributes for data validation and editing, and scaffolding for the automatic generation of CRUD actions and views.

How mature is ASP.NET MVC?

The first bits of ASP.NET MVC were introduced in October 2007, at the first ALT.NET Conference by Scott Guthrie, and it then took almost 2 year to reach the stability need for the first release. In total we can say that ASP.NET MVC is being used by the general public since almost 4 years: that’s a pretty long time.

I hope you found this little excursus useful and if you think I missed anything important, please don’t hesitate to add a comment.

ASP.NET MVC ASP.NET History (command)

Published at DZone with permission of Simone Chiaretta, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Educating the Next Generation of Cloud Engineers With Google Cloud
  • Pros and Cons of Using Styled Components in React
  • Public Cloud-to-Cloud Repatriation Trend
  • Dockerizing an Ansible Playbook, Part 1

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: