请输入您要查询的百科知识:

 

词条 ASP.NET MVC
释义

  1. Background

     Apache License 2.0 release 

  2. Release history

  3. View engines

  4. See also

  5. References

  6. Further reading

  7. External links

     Commercial and non-commercial projects  Sample projects 
{{External links|date=October 2015}}{{Infobox software
| name = ASP.NET MVC
| screenshot =
| caption =
| developer = Microsoft
| status = Active
| latest release version = 5.2.7
| latest release date = {{release date and age|df=yes|2018|11|28}}[1]
| latest preview version = 6.0.0-rc2
| latest preview date = {{release date and age|df=yes|2016|05|17}}[2]
| operating system = Cross-platform
| platform = .NET Framework, Mono
| programming language = C#, VB.NET[3]
| genre = Web application framework
| license = Apache License 2.0
| website = {{Official URL}}
}}

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.[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:

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

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|date=April 2017}}

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

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

Release history

Release history
Date Version
10 December 2007 ASP.NET MVC CTP
13 March 2009 ASP.NET MVC 1.0[11]
16 December 2009 ASP.NET MVC 2 RC[12]
4 February 2010 ASP.NET MVC 2 RC 2[13]
10 March 2010 ASP.NET MVC 2[14]
6 October 2010 ASP.NET MVC 3 Beta[15]
9 November 2010 ASP.NET MVC 3 RC[15]
10 December 2010 ASP.NET MVC 3 RC 2[16]
13 January 2011 ASP.NET MVC 3[17]
20 September 2011 ASP.NET MVC 4 Developer Preview[18]
15 February 2012 ASP.NET MVC 4 Beta[19]
31 May 2012 ASP.NET MVC 4 RC[20]
15 August 2012 ASP.NET MVC 4[21]
30 May 2013 ASP.NET MVC 4 4.0.30506.0[22]
26 June 2013 ASP.NET MVC 5 Preview[23]
23 August 2013 ASP.NET MVC 5 RC 1[24]
17 October 2013 ASP.NET MVC 5[24]
17 January 2014 ASP.NET MVC 5.1[24]
10 February 2014 ASP.NET MVC 5.1.1[24]
4 April 2014 ASP.NET MVC 5.1.2[24]
22 June 2014 ASP.NET MVC 5.1.3[24]
1 July 2014 ASP.NET MVC 5.2.0[24]
28 August 2014 ASP.NET MVC 5.2.2[24]
9 February 2015 ASP.NET MVC 5.2.3[24]
12 February 2018 ASP.NET MVC 5.2.4[25]
2 May 2018 ASP.NET MVC 5.2.5[26]
11 May 2018 ASP.NET MVC 5.2.6[24]
29 November 2018 ASP.NET MVC 5.2.7[24]
6 November 2014ASP.NET MVC 6.0.0-beta1[27]
18 November 2015ASP.NET MVC 6.0.0-rc1[27]
ASP.NET Core MVC - Release history
Date Version
17 May 2016ASP.NET Core MVC 1.0.0-rc2[27]
12 August 2016ASP.NET Core MVC 1.0.0[27]
17 August 2016ASP.NET Core MVC 1.0.1[27]
17 November 2016ASP.NET Core MVC 1.0.2[27]
6 March 2017ASP.NET Core MVC 1.0.3 [28]
9 May 2017ASP.NET Core MVC 1.0.4 [28]
20 September 2017ASP.NET Core MVC 1.0.5 [28]
14 November 2016ASP.NET Core MVC 1.0.6 [28]
16 November 2016ASP.NET Core MVC 1.1.0 [28]
27 January 2017ASP.NET Core MVC 1.1.1 [28]
6 March 2017ASP.NET Core MVC 1.1.2 [28]
9 May 2017ASP.NET Core MVC 1.1.3 [28]
20 September 2017ASP.NET Core MVC 1.1.4 [28]
14 November 2017ASP.NET Core MVC 1.1.5 [28]
12 December 2017ASP.NET Core MVC 1.1.6 [28]
13 March 2018ASP.NET Core MVC 1.1.7 [28]
11 August 2017ASP.NET Core MVC 2.0.0 [29]
14 November 2017ASP.NET Core MVC 2.0.1 [28]
9 January 2018ASP.NET Core MVC 2.0.2 [28]
13 March 2018ASP.NET Core MVC 2.0.3 [28]
30 May 2018ASP.NET Core MVC 2.1.0 [30]
18 June 2018ASP.NET Core MVC 2.1.1 [31]

View engines

The view engines used in the ASP.NET MVC 3 and MVC 4 frameworks are Razor and the Web Forms.[32][33] 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.[34] 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:

  • The MVCContrib library contains 8 alternate view engines. Brail, NDjango, NHaml, NVelocity, SharpTiles, Spark, StringTemplate and XSLT.[35]
  • The StringTemplate View Engine utilizes a .NET port of the Java templating engine, StringTemplate.[36]
  • Spark is a view engine for the ASP.NET MVC (and the Castle Project MonoRail) frameworks.[37]
  • 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[38]
  • Naked Objects for .NET is an implementation of the naked objects pattern using ASP.NET MVC

See also

{{Portal|Free and open-source software|Microsoft}}
  • Model–view–viewmodel
  • Model–view–adapter
  • Model–view–presenter
  • Observer pattern
  • Presentation–abstraction–control
  • Hierarchical model–view–controller

References

1. ^{{cite web|url=https://www.nuget.org/packages/Microsoft.AspNet.Mvc|title=Nuget package Microsoft.AspNet.Mvc |accessdate=2019-01-10}}
2. ^{{cite web|url=https://github.com/aspnet/Mvc/releases|title=MVC Releases|work=Official Microsoft ASP.NET Site|accessdate=18 May 2016}}
3. ^{{cite web|url=http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/vb/intro-to-aspnet-mvc-3|title=Intro to ASP.NET MVC 3 (VB)|author=Rick Anderson|work=The Official Microsoft ASP.NET Site|accessdate=17 January 2015}}
4. ^{{cite web|url=http://www.asp.net/vnext/overview/aspnet-vnext/aspnet-5-overview#unify|title=ASP.NET 5 Overview|author=Tom FitzMacken|work=The Official Microsoft ASP.NET Site|accessdate=17 January 2015}}
5. ^{{cite web | url = http://weblogs.asp.net/scottgu/archive/2007/10/14/asp-net-mvc-framework.aspx | title = ASP.NET MVC Framework | author = Scott Guthrie | accessdate = 2007-10-23| archiveurl= https://web.archive.org/web/20071022044027/http://weblogs.asp.net/scottgu/archive/2007/10/14/asp-net-mvc-framework.aspx| archivedate= 22 October 2007 | deadurl= no}}
6. ^{{cite web | url = http://weblogs.asp.net/scottgu/archive/2009/04/01/asp-net-mvc-1-0.aspx | title = ASP.NET mvc 1.0 Source Released | author = Scott Guthrie | accessdate = 2009-04-02| archiveurl= https://web.archive.org/web/20090403084000/http://weblogs.asp.net/scottgu/archive/2009/04/01/asp-net-mvc-1-0.aspx| archivedate= 3 April 2009 | deadurl= no}}
7. ^{{Cite web|url=https://www.codeproject.com/Articles/864950/ASP-NET-MVC-vs-ASP-NET-WebForm-performance-compari|title=Webform vs MVC performance comparison done with 25 user load test.|last=Koirala|first=Shivprasad|date=27 Sep 2014|website=codeproject|archive-url=|archive-date=|dead-url=|access-date=27 Sep 2014}}
8. ^{{cite web|url=http://aspnet4.com/asp-net-4-thoery/asp-net-mvc/|title=ASP.NET MVC|work=aspnet4.com|accessdate=17 January 2015}}
9. ^{{cite web |url=http://weblogs.asp.net/scottgu/archive/2012/03/27/asp-net-mvc-web-api-razor-and-open-source.aspx |title=ASP.NET MVC, Web API, Razor and Open Source |author=Scott Guthrie |accessdate=29 March 2012 |archiveurl=http://weblogs.asp.net/scottgu/archive/2012/03/27/asp-net-mvc-web-api-razor-and-open-source.aspx |archivedate= 28 March 2012 |deadurl=no}}
10. ^{{cite web |url=http://www.hanselman.com/blog/ASPNETMVC4ASPNETWebAPIAndASPNETWebPagesV2RazorNowAllOpenSourceWithContributions.aspx |title=ASP.NET MVC 4, ASP.NET Web API and ASP.NET Web Pages v2 (Razor) now all open source with contributions |author=Scott Hanselman |accessdate=29 March 2012 |archiveurl=http://www.hanselman.com/blog/ASPNETMVC4ASPNETWebAPIAndASPNETWebPagesV2RazorNowAllOpenSourceWithContributions.aspx |archivedate=28 March 2012 |deadurl=no}}
11. ^{{cite web|url=http://go.microsoft.com/fwlink/?LinkId=144444|title=Download ASP.NET MVC 1.0 from Official Microsoft Download Center|publisher=Microsoft|accessdate=17 January 2015}}
12. ^{{cite web|url=http://haacked.com/archive/2009/12/16/aspnetmvc-2-rc.aspx|title=ASP.NET MVC 2 RC Released|author=Phil Haack|publisher=|accessdate=17 January 2015}}
13. ^{{cite web|url=http://haacked.com/archive/2010/02/04/aspnetmvc2-rc2.aspx|title=ASP.NET MVC 2 RC 2 Released|author=Phil Haack|publisher=|accessdate=17 January 2015}}
14. ^{{cite web|url=http://www.microsoft.com/downloads/details.aspx?FamilyID=C9BA1FE1-3BA8-439A-9E21-DEF90A8615A9&displaylang=en|title=Download ASP.NET MVC 2 RTM from Official Microsoft Download Center|publisher=Microsoft|accessdate=17 January 2015}}
15. ^{{cite web|url=http://www.asp.net/whitepapers/mvc3-release-notes|title=ASP.NET MVC 3|work=The Official Microsoft ASP.NET Site|accessdate=17 January 2015}}
16. ^{{cite web|url=http://weblogs.asp.net/scottgu/archive/2010/12/10/announcing-asp-net-mvc-3-release-candidate-2.aspx|title=ScottGu's Blog - Announcing ASP.NET MVC 3 (Release Candidate 2)|publisher=|accessdate=17 January 2015}}
17. ^{{cite web|url=http://www.microsoft.com/downloads/en/details.aspx?FamilyID=d2928bc1-f48c-4e95-a064-2a455a22c8f6&displaylang=en|title=Download ASP.NET MVC 3 RTM from Official Microsoft Download Center|publisher=Microsoft|accessdate=17 January 2015}}
18. ^{{cite web|url=http://aspnet.codeplex.com/wikipage?title=ASP.NET%20MVC%204%20RoadMap|title=ASP.NET|work=CodePlex|accessdate=17 January 2015}}
19. ^{{cite web|url=http://www.asp.net/whitepapers/mvc4-release-notes|title=ASP.NET MVC 4|work=The Official Microsoft ASP.NET Site|accessdate=17 January 2015}}
20. ^{{cite web|url=http://blogs.msdn.com/b/webdev/archive/2012/05/31/new-features-for-web-development-in-visual-studio-2012-rc.aspx|title=MSDN Blogs|publisher=Microsoft|accessdate=17 January 2015}}
21. ^{{cite web|url=http://blogs.msdn.com/b/webdev/archive/2012/08/15/visual-studio-2012-rtw.aspx|title=MSDN Blogs|publisher=Microsoft|accessdate=17 January 2015}}
22. ^{{cite web|url=http://www.asp.net/vnext/overview/latest/aspnet-and-web-tools-20122-release-notes-rtw|title=ASP.NET and Web Tools 2012.2 Release Notes|work=The Official Microsoft ASP.NET Site|accessdate=17 January 2015}}
23. ^{{cite web|url=http://www.asp.net/vnext/overview/latest/release-notes#TOC10|title=ASP.NET and Web Tools for Visual Studio 2013 Release Notes|author=Microsoft ASP.NET Team|work=The Official Microsoft ASP.NET Site|accessdate=17 January 2015}}
24. ^10 {{cite web|url=http://www.nuget.org/packages/Microsoft.AspNet.Mvc|title=NuGet Gallery - Microsoft ASP.NET MVC 5.2.2|publisher=|accessdate=17 January 2015}}
25. ^{{cite web|url=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/|title=Announcing ASP.NET MVC 5.2.4, Web API 5.2.4, and Web Pages 3.2.4|publisher=Microsoft|accessdate=14 March 2018}}
26. ^{{cite web|url=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/|title=Announcing ASP.NET MVC 5.2.5, Web API 5.2.5, and Web Pages 3.2.5|publisher=Microsoft|accessdate=4 May 2018}}
27. ^{{Cite web|title = aspnet/Mvc|url = https://github.com/aspnet/Mvc/releases|website = GitHub|accessdate = 30 September 2016}}
28. ^10 11 12 13 14 {{cite web|url=https://www.nuget.org/packages/Microsoft.AspNetCore.Mvc/|title=NuGet Gallery: Microsoft.AspNetCore.Mvc|accessdate=2018-03-16}}
29. ^{{cite web|url=https://github.com/aspnet/Mvc/releases/tag/rel%2F2.0.0|title=Release 2.0.0 · aspnet/Mvc|work=Official Microsoft ASP.NET Site|accessdate=2017-08-29}}
30. ^{{cite web|url=https://www.nuget.org/packages/Microsoft.AspNetCore.Mvc/2.1.0/|title=NuGet Gallery: Microsoft.AspNetCore.Mvc|accessdate=2018-05-30}}
31. ^{{cite web|url=https://www.nuget.org/packages/Microsoft.AspNetCore.Mvc/2.1.1/|title=NuGet Gallery: Microsoft.AspNetCore.Mvc|accessdate=2018-06-18}}
32. ^{{cite web|url=http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx|title=ScottGu's Blog - Introducing "Razor" – a new view engine for ASP.NET|work=asp.net}}
33. ^{{cite web|url=http://www.asp.net/mvc/mvc3#BM_The_Razor_View_Engine|title=ASP.NET MVC 3|work=The Official Microsoft ASP.NET Site}}
34. ^{{cite web |url=http://www.hanselman.com/blog/ASPNETMVCPreview2ScreencastTutorials.aspx |title=Scott Hanselman's ASP.NET MVC Preview 2 Screencast Tutorials |accessdate=2008-10-13 |archiveurl=https://web.archive.org/web/20081029021535/http://www.hanselman.com/blog/ASPNETMVCPreview2ScreencastTutorials.aspx |archivedate=2008-10-29 |deadurl=no}}
35. ^MVCContrib
36. ^{{cite web|url=https://code.google.com/p/string-template-view-engine-mvc|title=string-template-view-engine-mvc - ASP.Net MVC ViewEngine for StringTemplate - Google Project Hosting|work=google.com}}
37. ^{{cite web|url=http://sparkviewengine.codeplex.com|title=Spark View Engine|work=CodePlex}}
38. ^{{cite web|url=https://code.google.com/p/ndjango/|title=ndjango - An implementation of the Django Template Language on the .NET platform, using the F# language. - Google Project Hosting|work=google.com}}

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

  • {{Official website}}
  • ASP.NET MVC, Web API, Web Pages source code on Codeplex
  • [https://web.archive.org/web/20110611060612/http://haacked.com/tags/aspnetmvc/default.aspx ASP.NET MVC Team Program Manager's Blog]
  • ASP.NET MVC Deep Dive with Scott Hanselman
  • ASP.NET MVC Application Development
  • ASP.NET Web Development
  • ASP.NET MVC Training
  • ASP.NET MVC Training with Project
  • ASP.NET Core MVC Training with Project

Commercial and non-commercial projects

  • Telerik UI for ASP.NET MVC is a lightweight framework for building rich and responsive ASP.NET MVC user interfaces.
  • ASP.NET MVC Project Awesome a rich set of helpers for building interactive Ajax-enabled Web applications.
  • [https://github.com/maartenba/MvcSiteMapProvider ASP.NET MVC SiteMap Provider] SiteMapProvider implementation for the ASP.NET MVC framework.
  • XSitemap is a free library for simple generation sitemaps.
  • ASP.NET MVC Controls Toolkit A complete set of server controls for ASP.NET MVC.
  • jQuery ASP.NET MVC Controls A pack of ASP.NET MVC compatible controls based on jQuery and jqGrid.
  • Dev Magic Fake A Framework to TDD Test Driven Development and simulate the underline layers of the MVC projects without writing code.
  • ASP.NET MVC4 Project An ongoing project to locate Blood Donors using online maps.
  • Data Moving Plug-in Advanced controls for ASP.NET MVC built on top of the Mvc Controls toolkit.
  • [https://github.com/whoaverse/whoaverse/ ASP.NET MVC5 Project] Open source reddit alternative.

Sample projects

  • EFMVC - ASP.NET MVC 3 and Entity Framework 4.1 Code First Demo web app using ASP.NET MVC 3 RTM, Razor, EF Code First and Autofac
  • ProDinner - ASP.NET MVC Entity Framework 4 Code First DDD jQuery Sample App shows the usage of DDD, Entity Framework 4 code first and jQuery in ASP.NET MVC, it also has a multi-language UI (using resource files) and a responsive UI
  • Mvc Music Store a sample store which sells albums online, demonstrating ASP.NET MVC's productivity features and data access via Entity Framework 4.
  • NerdDinner shows the very basics of ASP.NET MVC also the usage of OpenID, Bing Maps, Twitter Integration etc.
  • Bing Maps Application in ASP.NET MVC 4 A beginners tutorial on using Bing Mapping in ASP.NET, exploring MVC features to handle mobile and desktop views from a single application - MSDN Article.
{{.NET Framework}}{{Application frameworks}}{{Use dmy dates|date=June 2011}}{{Portal bar|.NET Framework}}{{DEFAULTSORT:Asp.Net Mvc}}

6 : .NET Framework|ASP.NET|Free software programmed in C Sharp|Software using the Apache license|Web frameworks|Microsoft free software

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/13 14:48:53