Introduction:
In this series we will learn the new design pattern
provided by Microsoft called the MVC (Model-View-Controller). In this
article we will start from what MVC is and then will discuss the
following topics.
- What is MVC?
- How it is differ from Asp.Net?
- What is Asp.Net MVC?
What is MVC?
MVC stand for Model-View-Controller architecture.
The following diagram can better explain the MVC structure.


You can clearly see from the preceding diagram how
these three components are interrelated with each other. We will see
each and every component of the architecture one by one.
CONTROLLER
Controller is the first step of MVC which can
be explained very well with the following points.
- A controller is responsible for controlling the way that a user interacts with an MVC application.
-
A controller determines what response to send back to a user when a user makes a browser request.
VIEW
The view can be defined as the following:
- A view contains the HTML markup and content that is sent to the browser.
- A view is the equivalent of a page when working with an ASP.NET MVC application.
- We must create views in the right
location. The HomeController.Index() action returns a view
located at the following path:
\Views\Home\Index.aspx - The HomeController.About() action
returns a view located at the following path:
\Views\Home\About.aspx
MODEL
The Model can be defined as.
- An MVC model contains all of your application logic that is not contained in a view or a controller
- The model will contain all of our application business logic and database access logic and other logic
- DataLayer kind of classes, Types for data should be created in MVC model.
Conclusion
In the next articles of this series, we will
see most of the differences and advantages of using MVC.

Lokesh RajanaPosted Jun 23, 2017, 5:29 AM
Very useful informantion. tq.
Christ XPosted Sep 10, 2013, 7:04 AM
really good explanation. thank you.
Krishna GaradPosted Feb 2, 2013, 1:17 AM
Thanks Umesh
Umesh KordePosted Feb 2, 2013, 12:48 AM
very good article to MVC beginner.
Sonakshi SinghPosted Jan 9, 2012, 11:16 PM
Explained and understandable...
Vineet Kumar SainiPosted Jan 8, 2012, 11:37 PM
Good article for beginner student....
Daisy KrausePosted Jan 8, 2012, 11:25 PM
Very good article for those who want to learn about MVC.
Aravind BseditedPosted Jan 8, 2012, 9:49 AMEdited Jan 8, 2012, 9:49 AM
If model contains all bussiness logic, then what is the actual work of controller? What does it contain?
Manish SinghPosted Jan 7, 2012, 11:20 PM
it's really helpful and useful
Arjun PanwarPosted Jan 7, 2012, 11:01 PM
Really nice work
Akash AhlawatPosted Jan 7, 2012, 11:00 PM
Nicely explained