MVC for ASP.NET
Most programmers familiar with JSP's Model II architecture and others generally familiar with Model View Controller (MVC) architectures, immediately wonder how the MVC pattern can be applied in an ASP.NET world. This article will demonstrate how the MVC pattern can be applied to an ASP.NET web application and still maintain the basic Microsoft supplied architecture.
Historical Background
For those unfamiliar with MVC, MVC stands for Model, View, Controller. The Model is the representation of the thing the user is trying to interact with. It typically holds the data and business rules. The View pulls information from the Model and renders that information in a way the user will understand. The Controller interprets actions by the user, usually mouse and keyboard events, and sends the information to the model or the view. The model knows nothing about the view or the controller other than that they exist. The view and the controller know as much as possible about the model. The advantage to this type of architecture is that the view and the controller may be changed without affecting the the model. For web applications that need to render themselves on various browsers and devices this is an ideal architecture that allows the application to be written originally for a desktop browser and later written for a PDA by changing only the view layer.

| Hits: | 68 | Last Updated: | 2006-07-17 |
VIEW ALL
ASP.NET Tutorials