Why & When to Use Asp.Net MVC vs Asp.Net Webforms

  Total Views : 7246
  Comments : 1
 
  Keywords : When to use Asp.Net MVC, Why we need to use Asp.Net MVC, Difference between Asp.Net MVC and Asp.Net web forms

Why and When to Use MVC?

When we want to develop application which should be lightweight and easy for testing and Maintenance and more Loose Coupling that time we can develop application in MVC.

 

Because if we see in asp.net Webforms as we have various server control which generates large view state to maintain state which make page heavy . If person having low bandwidth cannot access this Heavy page. At this time we can use MVC where we have control over Generating HTML and using some Functionality of MVC such as bundling and minification can increase performance of application.

While developing application in MVC we have long term benefits:

  1. Development
  2. Testing 
  3. Maintenance
  4. Control over HTML

Development: The MVC components such as (Model, View and Controller) can be developed in isolation. Because they are not directly depended on each other

 

Testing: The MVC components are not directly depend on each other this make it easy to test components separately.

 

Maintenance: All components logic is separated it make it easy for Maintenance in future.

 

Control over HTML: You want full control over the HTML that is rendered in the browser and you can afford the development time and overhead to do all of your own markup.

 

 Comments (1)

  • MONIKA SHARMA tutlane registered profile image
     
    MONIKA SHARMA   Reply

    can we have list of benefits of MVC pages over Asp.net Pages

     Jun 13, 2016

Leave a comment

  • Default Tutlane User