Asp .Net MVC - SPLessons

ASP.Net MVC Tutorial

Home > Lesson > Chapter 1
SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

ASP.Net MVC Tutorial

ASP.Net MVC Tutorial

shape Alert

MVC

shape Description

MVC means "Model View Controller". MVC 5 is the one of the version of MVC framework. Before MVC5, there is MVC1, MVC2, MVC3, and MVC4. MVC is a Microsoft technology which is used to build web applications. MVC is a framework, and an advanced technology which is introduced to overcome the problems in ASP.Net.

Difference between Web Forms and MVC

shape Description

ASP.Net web forms and Asp.Net MVC comes under the ASP.Net technology itself. But, there are some slight differences between the both technologies.
  • ASP.Net web forms look as uncomfortable design, whereas MVC comes under the comfortable design.
  • ASP.Net web forms have to run the complete page life cycle to respond for the user request. For Example Assume that one have a button in web form. Then,if want to perform some action after clicking on the button,the compiler will move to page_load method first. That means, the complete life cycle have to run for each request. Whereas MVC, The compiler will directly run the action method.
  • ASP.Net web forms use code-behind technique which is not reusable. In the case of MVC, one can use the code in different ways.
  • ASP.Net controls have to convert from server side controls to HTML controls when the application is running. In the case of MVC, from the starting onwards the controls are Html controls and they don't need to convert.
  • ASP.Net web forms have the tightly coupled user interface and the code. In the case of MVC, the user interface and code are completely separate.
  • Merging is simple in MVC compared to ASP.Net web forms.