Let's understand the MVC architecture in ASP.NET.
MVC stands for Model, View and Controller. MVC separates application into three components - Model, View and Controller.
Model: Model represents shape of the data and business logic. It maintains the data of the application. Model objects retrieve and store model state in a database.
Model is a data and business logic.
View: View is a user interface. View display data using model to the user and also enables them to modify the data.
View is a User Interface.
Controller: Controller handles the user request. Typically, user interact with View, which in-tern raises appropriate URL request, this request will be handled by a controller. The controller renders the appropriate view with the model data as a response.
Controller is a request handler.
The following figure illustrates the interaction between Model, View and Controller.
The following figure illustrates the flow of the user's request in ASP.NET MVC.
Request/Response in MVC Architecture
As per the above figure, when the user enters a URL in the browser, it goes to the server and calls appropriate controller. Then, the Controller uses the appropriate View and Model and creates the response and sends it back to the user. We will see the details of the interaction in the next few sections.
Points to Remember :
1. MVC stands for Model, View and Controller.
2. Model is responsible for maintaining application data and business logic.
3. View is a user interface of the application, which displays the data.
4. Controller handles user's requests and renders appropriate View with Model data.
Why in Fu-vision?
Fu-VISION PVT LTD, Coimbatore - Pioneers in software training programmes, which has quality training and infrastructure up to the mark of the IT industry requirements. Fu-VISION is a way proud to mention that the Job oriented IT Training is inclusive of platforms that have wider scope in the prevailing and forthcoming IT Job Market. These platforms are picked after a thorough research and analysis based upon the existing and prospective IT industry in mind and Training *** Placement Assurance.
COIMBATORE: HEAD OFFICE
NO: 96-A SREE NAGAR,
PALANI AANDAVAR ILLAM, 1nd FLOOR OPP KRISHNA SWEETS,
AVINASHI ROAD, PEELAMEDU,
HOPES COLLEGE BUS STOP,
SAI TOWERS, DIAGONALLY OPP TO GANGA-YAMUNA-KAVERI THEATRE
ABOVE BAJAJ MOTORCYCLES,
GP (100FT ROAD) COIMBATORE-641012