MVC an Overview
Microsoft has provided Web form (Code Behind) and MVC two different architectures to design and develop website under ASP.NET environment.
Our traditional web form (Code Behind) development follow the event driven programming model similar like Windows form development environment (State full). Someone does not know the website programming model (Stateless) also can use this model to develop website. It’s very easy for developer to design and write code behind the page. That’s why this development environment termed as RAD (Rapid Application Development) Tool also.
But this type of development environment has performance issue as well as difficult to maintain a big Project. There is also big issue how to isolate SOC (Separation of Concern).
To overcome these types of various issues Microsoft has introduced a new architecture called MVC Framework.
In general in any website user make an action (By HTTP Request) on his browser and get response (From Server). Microsoft Web form (Behind Code) based on View based solution for action based scenarios.
In traditional web development page life cycle is a big burden during creation of View at user ends. It becomes worse when view state used to overcome stateless issue.
It’s also possible to map your request to Action first and last to transfer the View.
MVC architecture is based on this approach.
Component of MVC Framework under .NET
Model - Business Logic
-Manage data and behavior of application domain
-Responds to requests for information about its state
-Respond to instructions to change state
Controller- Acknowledge the user action
-Interprets the mouse and keyboard inputs from the user
-Informs the Model and or the View to change as appropriate
View – Display to user
-Manage the display of Information