Friday, 27 November 2015

Asp.net & MVC Lab@2

1. Explain the benefits of ASP.NET MVC.


Ans  The ASP.NET MVC is an open source web application framework that implements the model–view–controller (MVC) pattern.
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.



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.
The ASP.NET MVC Framework couples the models, views, and controllers using interface-based contracts, thereby allowing each component to be tested independently.
The view engines used in the ASP.NET MVC 3 and MVC 4 Frameworks 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


No comments:

Post a Comment