Software:ASP.NET MVC
Developer(s) | Microsoft |
---|---|
Final release | 5.2.8
/ 12 April 2022[1] |
Preview release | 6.0.0-rc2
/ 17 May 2016[2] |
Written in | C#, VB.NET[3] |
Operating system | Cross-platform |
Platform | .NET Framework, Mono |
Successor | ASP.NET Core |
Type | Web application framework |
License | Apache License 2.0 |
Website | {{{1}}} |
ASP.NET MVC is a web application framework developed by Microsoft that implements the model–view–controller (MVC) pattern. It is no longer in active development. It is open-source software, apart from the ASP.NET Web Forms component, which is proprietary.
ASP.NET Core has since been released, which unified ASP.NET, ASP.NET MVC, ASP.NET Web API, and ASP.NET Web Pages (a platform using only Razor pages). MVC 6 was abandoned due to Core and is not expected to be released. Core is currently planned to merge into ".NET 5".[4]
Some well known sites that use ASP.NET MVC include Stack Overflow,[5] Microsoft, GoDaddy and Ancestry.com.[6][needs update]
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.[7]
In April 2009, the ASP.NET MVC source code was released under the Microsoft Public License (MS-PL).[8]
"ASP.NET MVC framework is a lightweight,[9] 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."[10]
The ASP.NET MVC framework couples the models, views, and controllers using interface-based contracts, thereby allowing each component to be tested independently.[citation needed]
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).[11]
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.[12]
Release history
Date | Version |
---|---|
10 December 2007 | ASP.NET MVC CTP |
13 March 2009 | ASP.NET MVC 1.0[13] |
16 December 2009 | ASP.NET MVC 2 RC[14] |
4 February 2010 | ASP.NET MVC 2 RC 2[15] |
10 March 2010 | ASP.NET MVC 2[16] |
6 October 2010 | ASP.NET MVC 3 Beta[17] |
9 November 2010 | ASP.NET MVC 3 RC[17] |
10 December 2010 | ASP.NET MVC 3 RC 2[18] |
13 January 2011 | ASP.NET MVC 3[19] |
20 September 2011 | ASP.NET MVC 4 Developer Preview[20] |
15 February 2012 | ASP.NET MVC 4 Beta[21] |
31 May 2012 | ASP.NET MVC 4 RC[22] |
15 August 2012 | ASP.NET MVC 4[23] |
30 May 2013 | ASP.NET MVC 4 4.0.30506.0[24] |
26 June 2013 | ASP.NET MVC 5 Preview[25] |
23 August 2013 | ASP.NET MVC 5 RC 1[26] |
17 October 2013 | ASP.NET MVC 5[26] |
17 January 2014 | ASP.NET MVC 5.1[26] |
10 February 2014 | ASP.NET MVC 5.1.1[26] |
4 April 2014 | ASP.NET MVC 5.1.2[26] |
22 June 2014 | ASP.NET MVC 5.1.3[26] |
1 July 2014 | ASP.NET MVC 5.2.0[26] |
28 August 2014 | ASP.NET MVC 5.2.2[26] |
9 February 2015 | ASP.NET MVC 5.2.3[26] |
12 February 2018 | ASP.NET MVC 5.2.4[27] |
2 May 2018 | ASP.NET MVC 5.2.5[28] |
11 May 2018 | ASP.NET MVC 5.2.6[26] |
29 November 2018 | ASP.NET MVC 5.2.7[26] |
12 April 2022 | ASP.NET MVC 5.2.8 (Current) |
View engines
The view engines used in the ASP.NET MVC 3 and MVC 4 frameworks are Razor and the Web Forms.[29][30] 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.[31] 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.[7]
Other view engines:
- The MVCContrib library contains 8 alternate view engines. Brail, NDjango, NHaml, NVelocity, SharpTiles, Spark, StringTemplate and XSLT.[32]
- The StringTemplate View Engine utilizes a .NET port of the Java templating engine, StringTemplate.[33]
- Spark is a view engine for the ASP.NET MVC (and the Castle Project MonoRail) frameworks.[34]
- 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.[35]
- Naked Objects for .NET is an implementation of the naked objects pattern using ASP.NET MVC.
See also
- Model–view–viewmodel
- Model–view–adapter
- Model–view–presenter
- Observer pattern
- Presentation–abstraction–control
- Hierarchical model–view–controller
References
- ↑ "Nuget package Microsoft.AspNet.Mvc". https://www.nuget.org/packages/Microsoft.AspNet.Mvc.
- ↑ "MVC Releases". Official Microsoft ASP.NET Site. https://github.com/aspnet/Mvc/releases.
- ↑ Rick Anderson. "Intro to ASP.NET MVC 3 (VB)". The Official Microsoft ASP.NET Site. http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/vb/intro-to-aspnet-mvc-3.
- ↑ "Introducing .NET 5". 6 May 2019. https://devblogs.microsoft.com/dotnet/introducing-net-5/.
- ↑ "What Was Stack Overflow Built With?". 21 September 2008. https://stackoverflow.blog/2008/09/21/what-was-stack-overflow-built-with/.
- ↑ "Top 10 Websites Written Using ASP.NET MVC - DZone Web Dev". https://dzone.com/articles/top-10-websites-written-using-aspnet-mvc.
- ↑ 7.0 7.1 Scott Guthrie. "ASP.NET MVC Framework". http://weblogs.asp.net/scottgu/archive/2007/10/14/asp-net-mvc-framework.aspx.
- ↑ Scott Guthrie. "ASP.NET mvc 1.0 Source Released". http://weblogs.asp.net/scottgu/archive/2009/04/01/asp-net-mvc-1-0.aspx.
- ↑ Koirala, Shivprasad (27 September 2014). "Webform vs MVC performance comparison done with 25 user load test.". https://www.codeproject.com/Articles/864950/ASP-NET-MVC-vs-ASP-NET-WebForm-performance-compari.
- ↑ "ASP.NET MVC". aspnet4.com. http://aspnet4.com/asp-net-4-thoery/asp-net-mvc/.
- ↑ Scott Guthrie. "ASP.NET MVC, Web API, Razor and Open Source". http://weblogs.asp.net/scottgu/archive/2012/03/27/asp-net-mvc-web-api-razor-and-open-source.aspx.
- ↑ Scott Hanselman. "ASP.NET MVC 4, ASP.NET Web API and ASP.NET Web Pages v2 (Razor) now all open source with contributions". http://www.hanselman.com/blog/ASPNETMVC4ASPNETWebAPIAndASPNETWebPagesV2RazorNowAllOpenSourceWithContributions.aspx.
- ↑ "Download ASP.NET MVC 1.0 from Official Microsoft Download Center". Microsoft. http://go.microsoft.com/fwlink/?LinkId=144444.[yes|permanent dead link|dead link}}]
- ↑ Phil Haack (16 December 2009). "ASP.NET MVC 2 RC Released". http://haacked.com/archive/2009/12/16/aspnetmvc-2-rc.aspx.
- ↑ Phil Haack (4 February 2010). "ASP.NET MVC 2 RC 2 Released". http://haacked.com/archive/2010/02/04/aspnetmvc2-rc2.aspx.
- ↑ "Download ASP.NET MVC 2 RTM from Official Microsoft Download Center". Microsoft. http://www.microsoft.com/downloads/details.aspx?FamilyID=C9BA1FE1-3BA8-439A-9E21-DEF90A8615A9&displaylang=en.
- ↑ 17.0 17.1 "ASP.NET MVC 3". The Official Microsoft ASP.NET Site. http://www.asp.net/whitepapers/mvc3-release-notes.
- ↑ "Announcing ASP.NET MVC 3 (Release Candidate 2)". http://weblogs.asp.net/scottgu/archive/2010/12/10/announcing-asp-net-mvc-3-release-candidate-2.aspx.
- ↑ "Download ASP.NET MVC 3 RTM from Official Microsoft Download Center". Microsoft. http://www.microsoft.com/downloads/en/details.aspx?FamilyID=d2928bc1-f48c-4e95-a064-2a455a22c8f6&displaylang=en.
- ↑ "ASP.NET". CodePlex. https://www.asp.net.pe/hosting-windows.html?title=ASP.NET.PE%20MVC.
- ↑ "ASP.NET MVC 4". The Official Microsoft ASP.NET Site. http://www.asp.net/whitepapers/mvc4-release-notes.
- ↑ "MSDN Blogs". Microsoft. http://blogs.msdn.com/b/webdev/archive/2012/05/31/new-features-for-web-development-in-visual-studio-2012-rc.aspx.
- ↑ "MSDN Blogs". Microsoft. http://blogs.msdn.com/b/webdev/archive/2012/08/15/visual-studio-2012-rtw.aspx.
- ↑ "ASP.NET and Web Tools 2012.2 Release Notes". The Official Microsoft ASP.NET Site. http://www.asp.net/vnext/overview/latest/aspnet-and-web-tools-20122-release-notes-rtw.
- ↑ Microsoft ASP.NET Team. "ASP.NET and Web Tools for Visual Studio 2013 Release Notes". The Official Microsoft ASP.NET Site. http://www.asp.net/vnext/overview/latest/release-notes#TOC10.
- ↑ 26.00 26.01 26.02 26.03 26.04 26.05 26.06 26.07 26.08 26.09 26.10 "Microsoft ASP.NET MVC 5.2.2". http://www.nuget.org/packages/Microsoft.AspNet.Mvc.
- ↑ "Announcing ASP.NET MVC 5.2.4, Web API 5.2.4, and Web Pages 3.2.4". Microsoft. 12 February 2018. https://blogs.msdn.microsoft.com/webdev/2018/02/12/announcing-asp-net-mvc-5-2-4-web-api-5-2-4-and-web-pages-3-2-4/.
- ↑ "Announcing ASP.NET MVC 5.2.5, Web API 5.2.5, and Web Pages 3.2.5". Microsoft. 2 May 2018. https://blogs.msdn.microsoft.com/webdev/2018/05/02/announcing-asp-net-mvc-5-2-5-web-api-5-2-5-and-web-pages-3-2-5/.
- ↑ "ScottGu's Blog - Introducing "Razor" – a new view engine for ASP.NET". asp.net. http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx.
- ↑ "ASP.NET MVC 3". The Official Microsoft ASP.NET Site. http://www.asp.net/mvc/mvc3#BM_The_Razor_View_Engine.
- ↑ "Scott Hanselman's ASP.NET MVC Preview 2 Screencast Tutorials". http://www.hanselman.com/blog/ASPNETMVCPreview2ScreencastTutorials.aspx.
- ↑ MVCContrib
- ↑ "string-template-view-engine-mvc - ASP.Net MVC ViewEngine for StringTemplate - Google Project Hosting". google.com. https://code.google.com/p/string-template-view-engine-mvc.
- ↑ "Spark View Engine". CodePlex. http://sparkviewengine.codeplex.com/.
- ↑ "ndjango - An implementation of the Django Template Language on the .NET platform, using the F# language. - Google Project Hosting". google.com. https://code.google.com/p/ndjango/.
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, Jimmy Bogard, Eric Hexter, Matthew Hinze, and Jeremy Skinner, ASP.NET MVC 4 in Action, Manning Publications, 2012, ISBN:978-1617-29041-1
- 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
- Arnaud Weil, Learn ASP.NET MVC, 2015, ISBN:1-32648303-X
- Andrew Lock, ASP.NET Core in Action, Manning Publications, 2018, ISBN:978-1617-29461-7
External links
Original source: https://en.wikipedia.org/wiki/ASP.NET MVC.
Read more |