MVC Version Differences

From Logic Wiki
Jump to: navigation, search


Below is a detailed table of differences. But during an interview it’s difficult to talk about all of them due to time limitation. So I have highlighted the important differences that you can run through before the interviewer.

MVC 2 MVC 3 MVC 4
  • Client-side validation
  • Templated Helpers Areas
  • Asynchronous Controllers
  • Html.ValidationSummary Helper Method
  • DefaultValueAttribute in Action-Method
  • Parameters binding
  • Binary data with Model Binders
  • DataAnnotations Attributes
  • Model-Validator Providers
  • New RequireHttpsAttribute Action Filter
  • Templated Helpers
  • Display Model-Level Errors
  • Razor
  • Readymade project
  • templates
  • HTML 5 enabled templates
  • Support for Multiple View Engines,
  • JavaScript, and AJAX
  • Model Validation
  • Improvements
  • ASP.NET Web API
  • Refreshed and modernized default project templates.
  • New mobile project template.
  • Many new features to support mobile apps
  • Enhanced support for asynchronous methods