What is MVC Pattern:
The main purpose of using MVC pattern is to decouple the GUIfrom the Data.
It also gives the ability to provide multiple views for the same data.MV pattern separates in to three important sections.
> Model: this section is specially for maintaining data.It is actually where yourbusiness logic,querying database,database connection etc.is actually implemented.
>Views: Displaying all or some portions of data,or probably different vciew of data.
View is responsible for look and feel,sorting,formatting etc.
>Controller: In ASP.NET the behind code is the controller as the evetns are hendled by that part.Controller communicates both with Model as well as with View.