Register

Difference between ASP.NET WebForms and ASP.NET MVC

General Discussions about Search Engines & Search Engine Optimization
Posts: 546
Joined: Sat Nov 09, 2013 2:26 pm
Location: Bangalore

Difference between ASP.NET WebForms and ASP.NET MVC

Postby siva s » Mon Jul 27, 2015 5:41 am

ASP.NET Web Forms uses Page controller pattern approach for rendering layout. In this approach, every page has it's own controller i.e. code-behind file that processes the request. On the other hand, ASP.NET MVC uses Front Controller approach. In this approach a common controller for all pages, processes the requests.

Posts: 2
Joined: Thu Feb 16, 2017 1:34 pm

Re: Difference between ASP.NET WebForms and ASP.NET MVC

Postby owenhallroh » Thu Feb 16, 2017 1:40 pm

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.

Posts: 71
Joined: Thu Mar 15, 2018 5:33 am

Re: Difference between ASP.NET WebForms and ASP.NET MVC

Postby damponting44 » Thu Jul 12, 2018 5:06 am

Asp.Net Web Form follow a traditional event-driven development model. Asp.net framework is a part of the .net platform for building, deploying and running web applications.

Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest