Friday, May 27, 2011

Introduction to MVC Architecture

MVC requires .NET framework 3.5 or above. The following describes the architecture of MVC:
MVC stands fro MODEL - VIEW - CONTROLLER.

Controller:
Controller is responsible for recieving request from the web server and identifies the action requirement . Depending on the requirement the controller contacts the corresponding MODEL. The Model will supply the required data, will which be rendered to User Interface using a VIEW.
Controller is responsible for handling request and responding to it.
Inside the controller class several action methods can be implemented.

Model:
Model are responsible for implementing any bussiness logic.
Models are  components responsible for maintaing states. Often this state is maintained in the database.

View:
It is a component responsible for displaying the application's UI.
View can be of any language such as C#, Razor, PHP, JSP etc.

0 comments:

Post a Comment

 

2011 ·Code-Studio by yrus.