The main purpose of MVC pattern is to decouple the graphical user interface (GUI) from the data.It gives the ability to provide multiple views for the same data. MVC pattern separates objects into three important sections:
Model
It is specially for maintaining the data. Its is actually where your business logic, querying database, etc are implemented. This section is represented by data view, dataset, typed dataset, business components, business entity model etc. This section can be tied upto either windows application or web UI.
Views
Displaying all or some portions of data, or probably different view of data. View is responsible for look and feel, sorting, etc. ASPX, ASCX, or windows application UI etc.
Controller
They are event handling section, which affect either model or view. In ASP.NET the Code behind.
Model
It is specially for maintaining the data. Its is actually where your business logic, querying database, etc are implemented. This section is represented by data view, dataset, typed dataset, business components, business entity model etc. This section can be tied upto either windows application or web UI.
Views
Displaying all or some portions of data, or probably different view of data. View is responsible for look and feel, sorting, etc. ASPX, ASCX, or windows application UI etc.
Controller
They are event handling section, which affect either model or view. In ASP.NET the Code behind.
Comments
Post a Comment