Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

ASP.NET MVC

From Wikipedia, the free encyclopedia
(Redirected fromASP.NET Web API)
Web application framework

ASP.NET MVC
DeveloperMicrosoft
Final release
5.3.0 / 23 October 2023; 2 years ago (2023-10-23)[1]
Preview release
6.0.0-rc2 / 17 May 2016; 9 years ago (2016-05-17)[2]
Repository
Written inC#,VB.NET[3]
Operating systemCross-platform
Platform.NET Framework,Mono
SuccessorASP.NET Core
TypeWeb application framework
LicenseApache License 2.0
Websitedotnet.microsoft.com/apps/aspnet/mvcEdit this at Wikidata

ASP.NET MVC is aweb application framework developed by Microsoft that implements themodel–view–controller (MVC) pattern. It is no longer in active development[citation needed]. It isopen-source software, apart from the ASP.NET Web Forms component, which isproprietary.

ASP.NET Core has since been released, which unifiedASP.NET, ASP.NET MVC, ASP.NET Web API, andASP.NET Web Pages (a platform using onlyRazor 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 includeStack Overflow,[5]Microsoft,GoDaddy andAncestry.com.[6][needs update]

Background

[edit]

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

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

Amodel represents the state of a particular aspect of the application. Acontroller handles interactions and updates the model to reflect a change in state of the application, and then passes information to the view. Aview 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 theMicrosoft 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 usinginterface-based contracts, thereby allowing each component to be tested independently.[citation needed]

Apache License 2.0 release

[edit]

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 onCodePlex. ASP.NET Web Forms was not included in this initiative for various reasons.[12]

Release history

[edit]
Release history
DateVersion
10 December 2007ASP.NET MVCCTP
13 March 2009ASP.NET MVC 1.0[13]
16 December 2009ASP.NET MVC 2RC[14]
4 February 2010ASP.NET MVC 2 RC 2[15]
10 March 2010ASP.NET MVC 2[16]
6 October 2010ASP.NET MVC 3 Beta[17]
9 November 2010ASP.NET MVC 3 RC[17]
10 December 2010ASP.NET MVC 3 RC 2[18]
13 January 2011ASP.NET MVC 3[19]
20 September 2011ASP.NET MVC 4 Developer Preview[20]
15 February 2012ASP.NET MVC 4 Beta[21]
31 May 2012ASP.NET MVC 4 RC[22]
15 August 2012ASP.NET MVC 4[23]
30 May 2013ASP.NET MVC 4 4.0.30506.0[24]
26 June 2013ASP.NET MVC 5 Preview[25]
23 August 2013ASP.NET MVC 5 RC 1[26]
17 October 2013ASP.NET MVC 5[26]
17 January 2014ASP.NET MVC 5.1[26]
10 February 2014ASP.NET MVC 5.1.1[26]
4 April 2014ASP.NET MVC 5.1.2[26]
22 June 2014ASP.NET MVC 5.1.3[26]
1 July 2014ASP.NET MVC 5.2.0[26]
28 August 2014ASP.NET MVC 5.2.2[26]
9 February 2015ASP.NET MVC 5.2.3[26]
12 February 2018ASP.NET MVC 5.2.4[27]
2 May 2018ASP.NET MVC 5.2.5[28]
11 May 2018ASP.NET MVC 5.2.6[26]
29 November 2018ASP.NET MVC 5.2.7[26]
12 April 2022ASP.NET MVC 5.2.8[26]
31 May 2022ASP.NET MVC 5.2.9[26]
23 October 2023ASP.NET MVC 5.3.0 (Current)

Project structure

[edit]
  • 📁 Application
    • 📁 Controllers
      • 🗎 PetController.cs
    • 📁 Models
      • 🗎 PetViewModel.cs
    • 📁 Views
      • 📁 Pet
        • 🗎 Create.cshtml
        • 🗎 Delete.cshtml
        • 🗎 Edit.cshtml
        • 🗎 Index.cshtml

View engines

[edit]

The view engines used in the ASP.NET MVC 3 and MVC 4 frameworks areRazor 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 Formspostback model, any interactions are routed to the controllers using the ASP.NETRouting mechanism. Views can be mapped to differentURLs.[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 theDjango 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 thenaked objects pattern using ASP.NET MVC.

See also

[edit]

References

[edit]
  1. ^"Nuget package Microsoft.AspNet.Mvc". Retrieved10 January 2025.
  2. ^"MVC Releases".Official Microsoft ASP.NET Site. Retrieved18 May 2016.
  3. ^Rick Anderson."Intro to ASP.NET MVC 3 (VB)".The Official Microsoft ASP.NET Site. Retrieved17 January 2015.
  4. ^"Introducing .NET 5". 6 May 2019.
  5. ^"What Was Stack Overflow Built With?". 21 September 2008.
  6. ^"Top 10 Websites Written Using ASP.NET MVC - DZone Web Dev".
  7. ^abScott Guthrie (15 October 2007)."ASP.NET MVC Framework".Archived from the original on 22 October 2007. Retrieved23 October 2007.
  8. ^Scott Guthrie (2 April 2009)."ASP.NET mvc 1.0 Source Released".Archived from the original on 3 April 2009. Retrieved2 April 2009.
  9. ^Koirala, Shivprasad (27 September 2014)."Webform vs MVC performance comparison done with 25 user load test".codeproject. Retrieved27 September 2014.
  10. ^"ASP.NET MVC".aspnet4.com. Archived fromthe original on 4 April 2014. Retrieved17 January 2015.
  11. ^Scott Guthrie (28 March 2012)."ASP.NET MVC, Web API, Razor and Open Source". Retrieved29 March 2012.
  12. ^Scott Hanselman."ASP.NET MVC 4, ASP.NET Web API and ASP.NET Web Pages v2 (Razor) now all open source with contributions". Retrieved29 March 2012.
  13. ^"Download ASP.NET MVC 1.0 from Official Microsoft Download Center". Microsoft. Archived fromthe original on 30 May 2012. Retrieved17 January 2015.
  14. ^Phil Haack (16 December 2009)."ASP.NET MVC 2 RC Released". Retrieved17 January 2015.
  15. ^Phil Haack (4 February 2010)."ASP.NET MVC 2 RC 2 Released". Retrieved17 January 2015.
  16. ^"Download ASP.NET MVC 2 RTM from Official Microsoft Download Center". Microsoft. Retrieved17 January 2015.
  17. ^ab"ASP.NET MVC 3".The Official Microsoft ASP.NET Site. Retrieved17 January 2015.
  18. ^"Announcing ASP.NET MVC 3 (Release Candidate 2)". ScottGu's Blog.weblogs.asp.net. 11 December 2010. Retrieved17 January 2015.
  19. ^"Download ASP.NET MVC 3 RTM from Official Microsoft Download Center". Microsoft. Retrieved17 January 2015.
  20. ^"ASP.NET".CodePlex. Retrieved17 January 2015.
  21. ^"ASP.NET MVC 4".The Official Microsoft ASP.NET Site. Retrieved17 January 2015.
  22. ^"MSDN Blogs". Microsoft. Retrieved17 January 2015.
  23. ^"MSDN Blogs". Microsoft. Retrieved17 January 2015.
  24. ^"ASP.NET and Web Tools 2012.2 Release Notes".The Official Microsoft ASP.NET Site. Archived fromthe original on 10 January 2015. Retrieved17 January 2015.
  25. ^Microsoft ASP.NET Team."ASP.NET and Web Tools for Visual Studio 2013 Release Notes".The Official Microsoft ASP.NET Site. Retrieved17 January 2015.
  26. ^abcdefghijklm"Microsoft ASP.NET MVC 5.2.2".NuGet. Retrieved17 January 2015.
  27. ^"Announcing ASP.NET MVC 5.2.4, Web API 5.2.4, and Web Pages 3.2.4". Microsoft. 12 February 2018. Retrieved14 March 2018.
  28. ^"Announcing ASP.NET MVC 5.2.5, Web API 5.2.5, and Web Pages 3.2.5". Microsoft. 2 May 2018. Retrieved4 May 2018.
  29. ^"ScottGu's Blog - Introducing "Razor" – a new view engine for ASP.NET".asp.net. 3 July 2010.
  30. ^"ASP.NET MVC 3".The Official Microsoft ASP.NET Site. 15 June 2023.
  31. ^"Scott Hanselman's ASP.NET MVC Preview 2 Screencast Tutorials".Archived from the original on 29 October 2008. Retrieved13 October 2008.
  32. ^MVCContrib
  33. ^"string-template-view-engine-mvc - ASP.Net MVC ViewEngine for StringTemplate - Google Project Hosting".google.com.
  34. ^"Spark View Engine".CodePlex. Archived fromthe original on 11 January 2018. Retrieved15 March 2013.
  35. ^"ndjango - An implementation of the Django Template Language on the .NET platform, using the F# language. - Google Project Hosting".google.com.

Further reading

[edit]
  • 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

[edit]
Implementations
Architecture
Components
Tools
Decompilers
Obfuscators
IDEs
Organizations
Overview
Software
Applications
Video games
Programming
languages
Frameworks,
development tools
Operating systems
Other
Licenses
Forges
Related
.NET
C++
ColdFusion
Common Lisp
Haskell
Java
JavaScript
Perl
PHP
Python
Ruby
Rust
Scala
Smalltalk
Other languages
Retrieved from "https://en.wikipedia.org/w/index.php?title=ASP.NET_MVC&oldid=1287543838"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp