Jump to content

ASP.NET MVC

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 112.134.100.97 (talk) at 05:55, 7 December 2011. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The ASP.NET MVC Framework is a web application framework that implements the model-view-controller (MVC) pattern. 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. Frequently, a model maps to a database table with the entries in the table representing the state of the application[citation needed]. 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.[1]

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

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

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

Release history

Release history
Date Version
10 December 2007 ASP.NET MVC CTP
13 March 2009 ASP.NET MVC 1.0[4]
10 March 2010 ASP.NET MVC 2.0[5]
13 January 2011 ASP.NET MVC 3.0[6]
20 September 2011 ASP.NET MVC 4.0 Developer Preview[7]

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

Other view engines:

References

  1. ^ a b Scott Guthrie. "ASP.NET MVC Framework". Retrieved 23 October 2007.
  2. ^ Scott Guthrie. "ASP.NET MVC 1.0 Source Released". Retrieved 2 April 2009.
  3. ^ ASP.NET MVC
  4. ^ http://go.microsoft.com/fwlink/?LinkId=144444
  5. ^ http://www.microsoft.com/downloads/details.aspx?FamilyID=C9BA1FE1-3BA8-439A-9E21-DEF90A8615A9&displaylang=en
  6. ^ http://www.microsoft.com/downloads/en/details.aspx?FamilyID=d2928bc1-f48c-4e95-a064-2a455a22c8f6&displaylang=en
  7. ^ http://aspnet.codeplex.com/wikipage?title=ASP.NET%20MVC%204%20RoadMap
  8. ^ "Scott Hanselman's ASP.NET MVC Preview 2 Screencast Tutorials". Retrieved 13 October 2008.

Further reading

  • Jon Galloway, Phil Haack, Brad Wilson, and K. Scott Allen, Professional ASP.NET MVC 3, Wrox, 2011, ISBN 1118076583
  • Jeffrey Palermo, Ben Scheirman, Jimmy Bogard, and Eric Hexter, ASP.NET MVC 2 in Action, Manning Publications, 2010, ISBN 193518279X
  • Steven Sanderson, Adam Freeman, Pro ASP.NET MVC 3 Framework, Second Edition, Apress, 2011, ISBN 1430234040
  • Jonathan McCracken, Test-Drive ASP.NET MVC, Pragmatic Bookshelf, 2010, ISBN 1934356530
  • Stephen Walther, ASP.NET MVC Framework Unleashed, Sam's, 2009, ISBN 0672329980

Open-source projects

Sample projects