Monday, 11 April 2016

Introduction of ASP.NET MVC

Introduction of ASP.Net MVC Model View Control:

ASP.NET MVC is a framework for building web applications that applies the general Model View Controller pattern to the ASP.NET framework.

Model-View-Controller (MVC) has been an important architectural pattern in computer science for many years. Originally named Thing-Model-View-Editor in 1979,

The MVC separates the user interface (UI) of an application into three main aspects:

 ➤ The Model: A set of classes that describes the data you’re working with as well as the business rules for how the data can be changed and manipulated

The View: Defines how the application’s UI will be displayed

The Controller: A set of classes that handles communication from the user, overall application fl ow, and application-specifi c logic


The MVC pattern is used frequently in web programming. With ASP.NET MVC.

 ➤ Models: These are the classes that represent the domain you are interested in. These domain objects often encapsulate data stored in a database as well as code that manipulates the data and enforces domain-specifi c business logic. With ASP.NET MVC, this is most likely a Data Access Layer of some kind, using a tool like Entity Framework or NHibernate combined with custom code containing domain-specifi c logic.

➤ View: This is a template to dynamically generate HTML.


➤ Controller: This is a special class that manages the relationship between the View and the Model. It responds to user input, talks to the Model, and decides which view to render (if any). In ASP.NET MVC, this class is conventionally denoted by the suffix Controller.

No comments:

Post a Comment