ASP.NET MVC Using Razor

ASP.NET MVC Using Razor

The basic need of introducing MVC was to make complex application development easy. MVC is a lightweight highly testable framework as compared to traditional ASP.NET Web Forms. MVC focusses on Separation of Concerns. The purpose of MVC is to separate the content from the presentation and data processing from content. One thing that MVC has done is to separate the view from the code i.e., unlike Web Forms where “*.aspx” is attached to “*.aspx.cs” here in MVC View is a separate entity entirely.

ASP.NET MVC is stateless. In this we do not pass requests to the page like Web Forms. But we talk to the controller. And controller handles the request and fetches the desired data from the model and transfers the data to the view. And this View is used to display the data to the end user.