| Developer(s) | Microsoft |
|---|---|
| Stable release | 3.0 / January 13, 2011 |
| Preview release | 4.0 / February 15, 2012 |
| 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
|
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.[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.
In March 2012, Scott Guthrie announced on his blog that Microsoft had released 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]
| Date | Version |
|---|---|
| 10 December 2007 | ASP.NET MVC CTP |
| 13 March 2009 | ASP.NET MVC 1.0[7] |
| 10 March 2010 | ASP.NET MVC 2.0[8] |
| 13 January 2011 | ASP.NET MVC 3.0[9] |
| 20 September 2011 | ASP.NET MVC 4.0 Developer Preview[10] |
| 15 February 2012 | ASP.NET MVC 4.0 Beta[11] |
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.[12] 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:
|
|||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||
This entry is from Wikipedia, the leading user-contributed encyclopedia. It may not have been reviewed by professional editors (see full disclaimer)