Difference between Asp.Net MVC and Webforms?

Author Topic: Difference between Asp.Net MVC and Webforms?  (Read 1058 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 159
  • Karma: 0
    • Hot Shaper
Difference between Asp.Net MVC and Webforms?
« on: 01-16-2016, 02:24:17 »
1. Asp.net Webform follows an event-driven development model whereas Asp.net Mvc follow Model, View, Controller design pattern.

2. Asp.net Webform has server controls whereas Asp.net Mvc has Html helpers for creating UI of application.

3.Asp.net Webforms has state management techniques whereas Asp.net Mvc doesn't have automatic state management techniques.

4. Asp.net Webform has file- based Urls means file name exists in Url whereas Asp.net Mvc has route-based Url.

5. In Asp.net webform, webforms(Aspx) are tightly coupled to code-behind (Aspx.cs) whereas in Asp.net Mvc, Views and logic are kept separately.

6. Asp.net Webform has Master page for consistent look and feel whereas in Asp.net Mvc layout is for this.

7. Asp.net Webform has User Controls for code re-usability whereas in Asp.net Mvc partial view is for this.


Offline TomClarke

  • Trade Count: (0)
  • Hero Member
  • *****
  • Thank You 48
  • Posts: 893
  • Karma: 0
  • Gender: Male
    • Custom Writing Service & Content Marketplace
Re: Difference between Asp.Net MVC and Webforms?
« Reply #1 on: 04-20-2016, 23:34:57 »
http://www.webdevelopmenthelp.net/2013/10/difference-between-asp-net-webform-and-asp-net-mvc.html this article allow to see graphically depicted differences
Your ideas, our writings - Writology.com

Offline Gharkul

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 0
  • Posts: 13
  • Karma: 0
Re: Difference between Asp.Net MVC and Webforms?
« Reply #2 on: 08-08-2016, 06:33:23 »
ASP.NET Web Forms
ASP.NET Web Forms use Page controller pattern approach for rendering layout. In this approach, every page has its own controller, i.e., code-behind file that processes the request.
No separation of concerns. As we discussed that every page (.aspx) has its own controller (code behind i.e. aspx.cs/.vb file), so both are tightly coupled.

ASP.NET MVC
ASP.NET MVC uses Front Controller approach. That approach means a common controller for all pages processes the requests.
Very clean separation of concerns. View and Controller are neatly separate.
Testability is a key feature in ASP.NET MVC. Test driven development is quite simple using this approach.

 

Related Topics

  Subject / Started by Replies Last post
6 Replies
2710 Views
Last post 10-24-2011, 00:30:13
by Hogward
22 Replies
10868 Views
Last post 12-04-2016, 23:34:48
by annarichart
34 Replies
17761 Views
Last post 03-25-2014, 06:13:10
by parijatziw
4 Replies
1761 Views
Last post 11-28-2012, 00:13:19
by DavisJoseph
5 Replies
5401 Views
Last post 04-19-2016, 00:25:36
by TomClarke