- Back to Home »
- ASP.NET »
- MVC 4 Overview Part-1
Posted by :
Sudhir Chekuri
Saturday, 23 November 2013
MVC stands for Model View Controller.
MVC is built on ASP.NET. In ASP.NET we create websites using webpages or web forms.
Web Pages applications can be created using Web Matrix or Visual studio. They will have .CSHTML as extension. Javascript and C# razor syntax code can be added to it.
Web Forms applications can be created using Visual studio. They will have .aspx files and .aspx.cs files. UI is created using dragging controls. Double click to create events.
MVC applications contains models for data and objects. Views generate user interface. Controllers interact with user actions. Visual Studio is used to create this apps. Code in .cshtml and .cs files. Precise control of HTML and URLs.
Configuration, State management, Membership and roles, catching is also there in MVC.
You can also include Web forms inside MVC application because all of them are ASP.NET.
Life cycle
When a request comes Controller will receive the request then communicate with model to retreive data.
The retrieved data is send to View which represents data visually to user.
MVC is built on ASP.NET. In ASP.NET we create websites using webpages or web forms.
Web Pages applications can be created using Web Matrix or Visual studio. They will have .CSHTML as extension. Javascript and C# razor syntax code can be added to it.
Web Forms applications can be created using Visual studio. They will have .aspx files and .aspx.cs files. UI is created using dragging controls. Double click to create events.
MVC applications contains models for data and objects. Views generate user interface. Controllers interact with user actions. Visual Studio is used to create this apps. Code in .cshtml and .cs files. Precise control of HTML and URLs.
Configuration, State management, Membership and roles, catching is also there in MVC.
You can also include Web forms inside MVC application because all of them are ASP.NET.
Life cycle
When a request comes Controller will receive the request then communicate with model to retreive data.
The retrieved data is send to View which represents data visually to user.