Saturday, 14 July 2012

The MVC Programming Model

MVC is one of three ASP.NET programming models.MVC is a framework for building web applications using a MVC (Model View Controller) design.

1. Models


Models represent knowledge. A model could be a single object (rather uninteresting), or it could be some structure of objects.

2. Views

A view is attached to its model (or model part) and gets the data necessary for the presentation from the model by asking questions. It may also update the model by sending appropriate messages. All these questions and messages have to be in the terminology of the model, the view will therefore have to know the semantics of the attributes of the model it represents.

3. Controllers

A controller is the link between a user and the system. It provides the user with input by arranging for relevant views to present themselves in appropriate places on the screen. It provides means for user output by presenting the user with menus or other means of giving commands and data. The controller receives such user output, translates it into the appropriate messages and pass these messages on to one or more of the views.


No comments:

Post a Comment