ASP.NET MVC

From Infogalactic: the planetary knowledge core
Jump to: navigation, search
ASP.NET MVC
Developer(s) Microsoft
Stable release 5.2.3 / 9 February 2015; 9 years ago (2015-02-09)
Preview release 6.0.0-rc1 / 18 November 2015; 8 years ago (2015-11-18)[1]
Development status Active
Written in C#, VB.NET[2]
Operating system Cross-platform
Platform .NET Framework, Mono
Type Web application framework
License Apache License 2.0
Website www.asp.net/mvc/

The ASP.NET MVC is a web application framework developed by Microsoft, which implements the model–view–controller (MVC) pattern. It is open-source software, apart from the ASP.NET Web Forms component which is proprietary.

In the later versions of ASP.NET, ASP.NET MVC, ASP.NET Web API, and ASP.NET Web Pages (a platform using only Razor pages) will merge into a unified MVC 6.[3] The project is called ASP.NET vNext.

Background

Based on ASP.NET, ASP.NET MVC allows software developers to build a web application as a composition of three roles: Model, View and Controller. The MVC model defines web applications with 3 logic layers:

  • Model (business layer)
  • View (display layer)
  • Controller (input control)

A model represents the state of a particular aspect of the application. A controller handles interactions and updates the model to reflect a change in state of the application, and then passes information to the view. A view accepts necessary information from the controller and renders a user interface to display that information.[4]

In April 2009, the ASP.NET MVC source code was released under the Microsoft Public License (MS-PL).[5]

"ASP.NET MVC framework is a lightweight, highly testable presentation framework that is integrated with existing ASP.NET features. Some of these integrated features are master pages and membership-based authentication. The MVC framework is defined in the System.Web.Mvc assembly."[6]

The ASP.NET MVC framework couples the models, views, and controllers using interface-based contracts, thereby allowing each component to be tested independently.

Apache License 2.0 release

In March 2012, Scott Guthrie announced on his blog that Microsoft had released part of its web stack (including ASP.NET MVC, Razor and Web API) under an open source license (Apache License 2.0).[7]

Guthrie wrote that "Doing so will enable a more open development model where everyone in the community will be able to engage and provide feedback on code checkins, bug-fixes, new feature development, and build and test the products on a daily basis using the most up-to-date version of the source code and tests."

The source code now resides on CodePlex. ASP.NET Web Forms was not included in this initiative for various reasons.[8]

Release history

Release history
Date Version
10 December 2007 ASP.NET MVC CTP
13 March 2009 ASP.NET MVC 1.0[9]
16 December 2009 ASP.NET MVC 2 RC[10]
4 February 2010 ASP.NET MVC 2 RC 2[11]
10 March 2010 ASP.NET MVC 2[12]
6 October 2010 ASP.NET MVC 3 Beta[13]
9 November 2010 ASP.NET MVC 3 RC[13]
10 December 2010 ASP.NET MVC 3 RC 2[14]
13 January 2011 ASP.NET MVC 3[15]
20 September 2011 ASP.NET MVC 4 Developer Preview[16]
15 February 2012 ASP.NET MVC 4 Beta[17]
31 May 2012 ASP.NET MVC 4 RC[18]
15 August 2012 ASP.NET MVC 4[19]
30 May 2013 ASP.NET MVC 4 4.0.30506.0 [20]
26 June 2013 ASP.NET MVC 5 Preview [21]
23 August 2013 ASP.NET MVC 5 RC 1[22]
17 October 2013 ASP.NET MVC 5[22]
17 January 2014 ASP.NET MVC 5.1[22]
10 February 2014 ASP.NET MVC 5.1.1[22]
4 April 2014 ASP.NET MVC 5.1.2[22]
22 June 2014 ASP.NET MVC 5.1.3[22]
1 July 2014 ASP.NET MVC 5.2.0[22]
28 August 2014 ASP.NET MVC 5.2.2[22]
9 February 2015 ASP.NET MVC 5.2.3[22]
7 November 2015 ASP.NET MVC 6.0.0-beta1[23]
18 November 2015 ASP.NET MVC 6.0.0-rc1[23]

View engines

The view engines used in the ASP.NET MVC 3 and MVC 4 frameworks are Razor and the Web Forms.[24][25] Both view engines are part of the MVC 3 framework. By default, the view engine in the MVC framework uses Razor .cshtml and .vbhtml, or Web Forms .aspx pages to design the layout of the user interface pages onto which the data is composed. However, different view engines can be used.[26] Additionally, rather than the default ASP.NET Web Forms postback model, any interactions are routed to the controllers using the ASP.NET Routing mechanism. Views can be mapped to REST-friendly URLs.[4]

Other view engines:

  • The MVCContrib library contains 8 alternate view engines. Brail, NDjango, NHaml, NVelocity, SharpTiles, Spark, StringTemplate and XSLT.[27]
  • The StringTemplate View Engine utilizes a .NET port of the Java templating engine, StringTemplate.[28]
  • Spark is a view engine for the ASP.NET MVC (and the Castle Project MonoRail) frameworks.[29]
  • NDjango is a port of the Django web framework's templating language to .NET. It is written in F# and comes with Visual Studio extension including full Intellisense support[30]
  • Naked Objects for .NET is an implementation of the naked objects pattern using ASP.NET MVC

See also

References

  1. Lua error in package.lua at line 80: module 'strict' not found.
  2. Lua error in package.lua at line 80: module 'strict' not found.
  3. Lua error in package.lua at line 80: module 'strict' not found.
  4. 4.0 4.1 Lua error in package.lua at line 80: module 'strict' not found.
  5. Lua error in package.lua at line 80: module 'strict' not found.
  6. Lua error in package.lua at line 80: module 'strict' not found.
  7. Lua error in package.lua at line 80: module 'strict' not found.
  8. Lua error in package.lua at line 80: module 'strict' not found.
  9. Lua error in package.lua at line 80: module 'strict' not found.
  10. Lua error in package.lua at line 80: module 'strict' not found.
  11. Lua error in package.lua at line 80: module 'strict' not found.
  12. Lua error in package.lua at line 80: module 'strict' not found.
  13. 13.0 13.1 Lua error in package.lua at line 80: module 'strict' not found.
  14. Lua error in package.lua at line 80: module 'strict' not found.
  15. Lua error in package.lua at line 80: module 'strict' not found.
  16. Lua error in package.lua at line 80: module 'strict' not found.
  17. Lua error in package.lua at line 80: module 'strict' not found.
  18. Lua error in package.lua at line 80: module 'strict' not found.
  19. Lua error in package.lua at line 80: module 'strict' not found.
  20. Lua error in package.lua at line 80: module 'strict' not found.
  21. Lua error in package.lua at line 80: module 'strict' not found.
  22. 22.0 22.1 22.2 22.3 22.4 22.5 22.6 22.7 22.8 Lua error in package.lua at line 80: module 'strict' not found.
  23. 23.0 23.1 Lua error in package.lua at line 80: module 'strict' not found.
  24. Lua error in package.lua at line 80: module 'strict' not found.
  25. Lua error in package.lua at line 80: module 'strict' not found.
  26. Lua error in package.lua at line 80: module 'strict' not found.
  27. MVCContrib
  28. Lua error in package.lua at line 80: module 'strict' not found.
  29. Lua error in package.lua at line 80: module 'strict' not found.
  30. Lua error in package.lua at line 80: module 'strict' not found.

Further reading

  • Jon Galloway, Phil Haack, Brad Wilson, and K. Scott Allen, Professional ASP.NET MVC 3, Wrox, 2011, ISBN 1-118-07658-3
  • Jeffrey Palermo, Ben Scheirman, Jimmy Bogard, and Eric Hexter, ASP.NET MVC 2 in Action, Manning Publications, 2010, ISBN 1-935182-79-X
  • Steven Sanderson, Adam Freeman, Pro ASP.NET MVC 3 Framework, Second Edition, Apress, 2011, ISBN 1-4302-3404-0
  • Jonathan McCracken, Test-Drive ASP.NET MVC, Pragmatic Bookshelf, 2010, ISBN 1-934356-53-0
  • Stephen Walther, ASP.NET MVC Framework Unleashed, Sam's, 2009, ISBN 0-672-32998-0

External links

Lua error in package.lua at line 80: module 'strict' not found.

Commercial and non-commercial projects

Sample projects