In this article series you will learn ASP.NET MVC and its
feature. This Article series will help you to build step by step MVC
What is MVC ?
MVC (Model view Controller) is the
separation of model, view and controller — nothing more,
nothing less. It's simply a paradigm; an ideal that you should have in the back
of your mind when designing classes. Avoid mixing code from the three
categories into one class.
Model - The
lowest level of the pattern which is responsible for maintaining data. It is
responsible for managing the data of the application. It responds to the
request from the view and it also responds to instructions from the controller
to update itself.
View - This is
responsible for displaying all or a portion of the data to the user. A
presentation of data in a particular format, triggered by a controller's
decision to present the data.
Controller - Code
that controls the interactions between the Model and View. The controller is
responsible for responding to user input and perform interactions on the data
model objects. The controller receives the input, it validates the input and
then performs the business operation that modifies the state of the data model.
Why to choose MVC ?
- Option to separate your presentation part (views) from your
- Easy to test and maintain application.
- Clean View Markup (no additional HTML emitted).
- Gives responsive UI by default.
- Supports URL routing for SEO friendly URL.
Creating your first MVC
Project, then select Visual C# on
the left, then Web and then select ASP.NET
Web Application. Name your project "LearnMvc" and then click OK.
In the New ASP.NET
Project dialog, click MVC and then
Now first “Hello World” MVC application is ready. AS you
created the project recently without doing anything it will create sample “Hello
world” page. Press F5 to start your
The application also provides support to register and log in.
It also supports responsive UI. The Icon shows on the right
will automatically change based on the browser size.
Summary: I hope this article will help you to understand MVC and help you to create
your first ASP.NET MVC application.