Click here to Skip to main content
15,867,834 members
Articles / All Topics

Beginners Guide’s to ASP.NET MVC Framework – Part 1 of n

Rate me:
Please Sign up or sign in to vote.
4.88/5 (10 votes)
19 Oct 2009CPOL2 min read 60.1K   33   4
This article describes an overview of ASP.NET MVC Framework, MVC Control Flow, etc. This article is Part 1 of the ASP.NET MVC Framework series.

This article describes an overview of ASP.NET MVC Framework, MVC Control Flow, etc.

This article is Part 1 of the ASP.NET MVC Framework series. In this article, I have described a very basic overview of the MVC Framework and the control flow of MVC. I will write a few articles in this series which will help all the beginners to move ahead. This article is only about what MVC is.

Overview

The Model-View-Controller (MVC) design pattern is an architectural design patterns for any standard development that separates the components of an application. This allows the application to be very flexible and extensible and is easy to handle. ASP.NET MVC Framework is also one of the standard web development frameworks which separates the components of web development application into different components.

ASP.NET MVC Framework has three main components:

  1. Model
  2. View
  3. Controller

4

Model: The model manages the behavior and data of the application domain, responds to requests for information about its state from the view, and responds to instructions to change state (usually from the controller).

View: This represents the presentation layer of the web application. The view manages the display of information based on the data of model that is requested by controller.

Controller: Controller handles the user interaction with the web application. User request comes through controller to model and manipulate the records from it and then render the data using View to UI.

The below diagram shows the overview of these three components:

1

Request Flow for ASP.NET MVC Framework

  1. Request comes from User to Controller
  2. Controller processes requests and forms a data Model
  3. Model is passed to View
  4. View transforms Model into appropriate output format
  5. Response is rendered to Browser

2

The above picture shows you the actual flow of ASP.NET MVP Framework. The request comes from client to Controller and controller decides which model to use and based on that data is rendered into browser.

Now, just have a closer look into the MVC Flow:

3

In the next article, I will give the explanation of each and every step. You just need to remember these are the basic flow of an MVC Application.

ASP.NET Web Forms and  MVC

MVC is not a replacement for ASP.NET Web Form based development. This sits on the top of ASP.NET Development. MVC Framework simply divides the overall application architecture into three components.

For more information on the basics of MVC Framework, please read:

Summary

This is the startup article for MVC beginners. There are many more to come where I will explain details of each of them with a sample application. Finally there would be a complete ASP.NET project on MVC Framework. Hope this series will be helpful for all.

Posted in ASP.NET, MVC Framework

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead
India India
.NET Consultant | Former Microsoft MVP - ASP.NET | CodeProject MVP, Mentor, Insiders| Technology Evangelist | Author | Speaker | Geek | Blogger | Husband

Blog : http://abhijitjana.net
Web Site : http://dailydotnettips.com
Twitter : @AbhijitJana
My Kinect Book : Kinect for Windows SDK Programming Guide

Comments and Discussions

 
GeneralMy vote of 1 Pin
H. Ali KARACA3-May-13 1:56
H. Ali KARACA3-May-13 1:56 
GeneralMy vote of 4 Pin
Varun Sareen8-Apr-13 18:50
Varun Sareen8-Apr-13 18:50 
GeneralMy vote of 5 Pin
Aditya Bhushan Chaturvedi8-May-12 18:57
professionalAditya Bhushan Chaturvedi8-May-12 18:57 
GeneralMy vote of 1 PinPopular
ptMujeeb25-Apr-11 18:19
professionalptMujeeb25-Apr-11 18:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.