Tell us about the differences between Webforms and Asp.Net MVC pattern?

 Posted by vishalneeraj-24503 on 9/15/2014 | Category: Interview Questions Interview questions | Views: 1478 | Points: 40

Following are the differences between Webforms and Asp.Net MVC pattern:-
1. Webform has User Controls for code re-usability whereas in Mvc partial view is used.
2. Webforms has state management techniques whereas Mvc doesn't have automatic state management techniques.
3. Webform has file-based Urls means file name exists in Url whereas Mvc has route-based Url.
4. Webform has Master page for consistent look and feel whereas in Mvc layout is used.
5. Webform has server controls whereas Mvc has Html helpers for creating UI.
6. In webform,Aspx pages are tightly coupled to code-behind (.cs/.vb) whereas in Mvc,Views and logic are kept separately.
7. Webform follows an event-driven development model whereas Mvc follows Model,View and Controller design pattern.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response