ASP.NET MVC
Developer(s) | Microsoft |
---|---|
Stable release | 2.0
/ March 10, 2010 |
Repository | |
Written in | C# |
Operating system | Cross-platform |
Platform | .NET Framework, Mono |
Type | Application framework |
License | Microsoft Public License |
Website | www.asp.net/mvc |
The ASP.NET MVC Framework is a web application framework that implements the model-view-controller 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. 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]
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
Date | Version |
---|---|
10 December 2007 | ASP.NET MVC CTP |
13 March 2009 | ASP.NET MVC 1.0[3] |
10 March 2010 | ASP.NET MVC 2.0[4] |
View engines
The mainstream view engine used in the ASP.NET MVC Framework is the Web Forms view engine, which ships with the framework itself. By default, the view engine in the MVC framework uses regular .aspx
pages to design the layout of the user interface pages onto which the data is composed. However, different view engines can be used.[5] Additionally, rather than the default ASP.NET 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:
- The MVCContrib library contains 8 alternate view engines. Brail, NDjango, NHaml, NVelocity, SharpTiles, Spark, StringTemplate and XSLT.
- The StringTemplate View Engine utilizes a .NET port of the popular Java Templating engine, StringTemplate.
- Spark is a view engine for the ASP.NET MVC (and the Castle Project MonoRail) frameworks.
References
- ^ a b Scott Guthrie. "ASP.NET MVC Framework". Retrieved 2007-10-23.
- ^ Scott Guthrie. "ASP.NET MVC 1.0 Source Released". Retrieved 2009-04-02.
- ^ http://go.microsoft.com/fwlink/?LinkId=144444
- ^ http://www.microsoft.com/downloads/details.aspx?FamilyID=C9BA1FE1-3BA8-439A-9E21-DEF90A8615A9&displaylang=en
- ^ "Scott Hanselman's ASP.NET MVC Preview 2 Screencast Tutorials". Retrieved 2008-10-13.
Further reading
- Jonathan McCracken, Test-Drive ASP.NET MVC, Pragmatic Bookshelf, 2010, ISBN 1934356530
- Steven Sanderson, Pro ASP.NET MVC Framework, Apress, 2009, ISBN 1430210079
- Stephen Walther, ASP.NET MVC Framework Unleashed, Sam's, 2009, ISBN 0672329980