Thread Rating:
  • 0 Vote(s) - 0 Average
Share Thread:
Difference between ASP.NET WebForms and ASP.NET MVC
#1
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.
Reply
#2
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Ad

[-]
Top Articles
100+ Social Bookmarking Sites List
55+ Image Submission Sites List

[-]
Recent Posts
Cenchu - All in One Thread
They are a new company and are creating a lot of noise in the Cloud Hosting industry. So,...Host — 05:20 AM
HaBangNet Review from Asian Users
They are a decent network for Asian traffic. That's all I can say. Provides average servi...Host — 05:17 AM
What is Super P Force and Super Tadarise?
Sildenafil Citrate, a strong inhibitor of phosphodiesterase type 5 (PDE5), is an ingredie...roselopez — 05:13 AM
Aspadol 50mg Tablets | Tapentadol | Treats Pain
Aspadol 50mg is a medication primarily used for the relief of moderate to moderately seve...hansonlily286 — 05:08 AM
Test
We are also told to test.lootmeup — 05:03 AM

[-]
Follow us on Facebook