Pular para o conteúdo

Conheça Walt Disney World

ASP.NET MVC Framework

ASP.NET MVC Framework
Developer(s) Microsoft
Stable release 4.0 / August 15, 2012; 33 days ago (2012-08-15)
Preview release 4.0 RC / May 31, 2012; 3 months ago (2012-05-31)
Development status Active
Written in C#, VB.NET[1]
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 Framework is a web application framework that implements the model-view-controller (MVC) pattern.

Contents

Background

Based on ASP.NET, it allows software developers to build a Web application as a composition of three roles: Model, View and Controller.

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

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

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

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

Apache License 2.0 release

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

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

Release history

Release history
Date Version
10 December 2007 ASP.NET MVC CTP
13 March 2009 ASP.NET MVC 1.0[7]
16 December 2009 ASP.NET MVC 2.0 RC[8]
4 February 2010 ASP.NET MVC 2.0 RC 2[9]
10 March 2010 ASP.NET MVC 2.0[10]
6 October 2010 ASP.NET MVC 3.0 Beta[11]
9 November 2010 ASP.NET MVC 3.0 RC[12]
10 December 2010 ASP.NET MVC 3.0 RC 2[13]
13 January 2011 ASP.NET MVC 3.0[14]
20 September 2011 ASP.NET MVC 4.0 Developer Preview[15]
15 February 2012 ASP.NET MVC 4.0 Beta[16]
31 May 2012 ASP.NET MVC 4.0 RC[17]
15 Aug 2012 ASP.NET MVC 4.0[18]

View Engines

The view engines used in the ASP.NET MVC 3 Framework are the Razor View Engine and the Web Forms view engine. 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.[19] 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.[2]

Other view engines:

References

  1. ^ Intro to ASP.NET MVC 3 (VB)
  2. ^ a b Scott Guthrie. "ASP.NET MVC Framework". Archived from the original on 22 October 2007. http://weblogs.asp.net/scottgu/archive/2007/10/14/asp-net-mvc-framework.aspx. Retrieved 2007-10-23. 
  3. ^ Scott Guthrie. "ASP.NET MVC 1.0 Source Released". Archived from the original on 3 April 2009. http://weblogs.asp.net/scottgu/archive/2009/04/01/asp-net-mvc-1-0.aspx. Retrieved 2009-04-02. 
  4. ^ ASP.NET MVC
  5. ^ Scott Guthrie. "ASP.NET MVC, Web API, Razor and Open Source". Archived from the original on 28 March 2012. http://weblogs.asp.net/scottgu/archive/2012/03/27/asp-net-mvc-web-api-razor-and-open-source.aspx. Retrieved 29 March 2012. 
  6. ^ 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. http://www.hanselman.com/blog/ASPNETMVC4ASPNETWebAPIAndASPNETWebPagesV2RazorNowAllOpenSourceWithContributions.aspx. Retrieved 29 March 2012. 
  7. ^ http://go.microsoft.com/fwlink/?LinkId=144444
  8. ^ http://haacked.com/archive/2009/12/16/aspnetmvc-2-rc.aspx
  9. ^ http://haacked.com/archive/2010/02/04/aspnetmvc2-rc2.aspx
  10. ^ http://www.microsoft.com/downloads/details.aspx?FamilyID=C9BA1FE1-3BA8-439A-9E21-DEF90A8615A9&displaylang=en
  11. ^ http://www.asp.net/whitepapers/mvc3-release-notes
  12. ^ http://www.asp.net/whitepapers/mvc3-release-notes
  13. ^ http://weblogs.asp.net/scottgu/archive/2010/12/10/announcing-asp-net-mvc-3-release-candidate-2.aspx
  14. ^ http://www.microsoft.com/downloads/en/details.aspx?FamilyID=d2928bc1-f48c-4e95-a064-2a455a22c8f6&displaylang=en
  15. ^ http://aspnet.codeplex.com/wikipage?title=ASP.NET%20MVC%204%20RoadMap
  16. ^ http://www.asp.net/whitepapers/mvc4-release-notes
  17. ^ http://blogs.msdn.com/b/webdev/archive/2012/05/31/new-features-for-web-development-in-visual-studio-2012-rc.aspx
  18. ^ http://blogs.msdn.com/b/webdev/archive/2012/08/15/visual-studio-2012-rtw.aspx
  19. ^ "Scott Hanselman's ASP.NET MVC Preview 2 Screencast Tutorials". Archived from the original on 29 October 2008. http://www.hanselman.com/blog/ASPNETMVCPreview2ScreencastTutorials.aspx. Retrieved 2008-10-13. 

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

Commercial and non-commercial Projects

Sample projects

External links

Personal tools
  • Create account
  • Log in
Namespaces

Variants
Actions
Navigation
Toolbox
Print/export