ASP.NET MVC

ASP.NET MVC
Developer(s) Microsoft
Stable release
5.2.3 / 9 February 2015 (2015-02-09)
Preview release
6.0.0-rc2 / 17 May 2016 (2016-05-17)[1]
Repository git01.codeplex.com/aspnetwebstack
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 was initially called ASP.NET vNext and was later renamed to ASP.NET Core.[4]

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:

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.[5]

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

"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."[7]

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).[8]

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.[9]

Release history

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

View engines

The view engines used in the ASP.NET MVC 3 and MVC 4 frameworks are Razor and the Web Forms.[25][26] 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.[27] 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 different URLs.[5]

Other view engines:

See also

References

  1. "MVC Releases". Official Microsoft ASP.NET Site. Retrieved 18 May 2016.
  2. Rick Anderson. "Intro to ASP.NET MVC 3 (VB)". The Official Microsoft ASP.NET Site. Retrieved 17 January 2015.
  3. Tom FitzMacken. "ASP.NET 5 Overview". The Official Microsoft ASP.NET Site. Retrieved 17 January 2015.
  4. Hanselman, Scott (19 January 2016). "ASP.NET 5 is dead - Introducing ASP.NET Core 1.0 and .NET Core 1.0". Archived from the original on 2016-01-20. Retrieved 2016-01-19.
  5. 1 2 Scott Guthrie. "ASP.NET MVC Framework". Archived from the original on 22 October 2007. Retrieved 2007-10-23.
  6. Scott Guthrie. "ASP.NET mvc 1.0 Source Released". Archived from the original on 3 April 2009. Retrieved 2009-04-02.
  7. "ASP.NET MVC". aspnet4.com. Retrieved 17 January 2015.
  8. Scott Guthrie. "ASP.NET MVC, Web API, Razor and Open Source". Archived from the original on 28 March 2012. Retrieved 29 March 2012.
  9. Scott Hanselman. "ASP.NET MVC 4, ASP.NET Web API and ASP.NET Web Pages v2 (Razor) now all open source with contributions". Archived from the original on 28 March 2012. Retrieved 29 March 2012.
  10. "Download ASP.NET MVC 1.0 from Official Microsoft Download Center". Microsoft. Retrieved 17 January 2015.
  11. Phil Haack. "ASP.NET MVC 2 RC Released". Retrieved 17 January 2015.
  12. Phil Haack. "ASP.NET MVC 2 RC 2 Released". Retrieved 17 January 2015.
  13. "Download ASP.NET MVC 2 RTM from Official Microsoft Download Center". Microsoft. Retrieved 17 January 2015.
  14. 1 2 "ASP.NET MVC 3". The Official Microsoft ASP.NET Site. Retrieved 17 January 2015.
  15. "ScottGu's Blog - Announcing ASP.NET MVC 3 (Release Candidate 2)". Retrieved 17 January 2015.
  16. "Download ASP.NET MVC 3 RTM from Official Microsoft Download Center". Microsoft. Retrieved 17 January 2015.
  17. "ASP.NET". CodePlex. Retrieved 17 January 2015.
  18. "ASP.NET MVC 4". The Official Microsoft ASP.NET Site. Retrieved 17 January 2015.
  19. "MSDN Blogs". Microsoft. Retrieved 17 January 2015.
  20. "MSDN Blogs". Microsoft. Retrieved 17 January 2015.
  21. "ASP.NET and Web Tools 2012.2 Release Notes". The Official Microsoft ASP.NET Site. Retrieved 17 January 2015.
  22. Microsoft ASP.NET Team. "ASP.NET and Web Tools for Visual Studio 2013 Release Notes". The Official Microsoft ASP.NET Site. Retrieved 17 January 2015.
  23. 1 2 3 4 5 6 7 8 9 "NuGet Gallery - Microsoft ASP.NET MVC 5.2.2". Retrieved 17 January 2015.
  24. 1 2 3 4 5 "aspnet/Mvc". GitHub. Retrieved 30 September 2016.
  25. "ScottGu's Blog - Introducing "Razor" – a new view engine for ASP.NET". asp.net.
  26. "ASP.NET MVC 3". The Official Microsoft ASP.NET Site.
  27. "Scott Hanselman's ASP.NET MVC Preview 2 Screencast Tutorials". Archived from the original on 2008-10-29. Retrieved 2008-10-13.
  28. MVCContrib
  29. "string-template-view-engine-mvc - ASP.Net MVC ViewEngine for StringTemplate - Google Project Hosting". google.com.
  30. "Spark View Engine". CodePlex.
  31. "ndjango - An implementation of the Django Template Language on the .NET platform, using the F# language. - Google Project Hosting". google.com.

Further reading

External links

Commercial and non-commercial projects

Sample projects

This article is issued from Wikipedia - version of the 11/18/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.