Mvc webforms

1,715 views

Published on

comparison between Asp.net webform and Asp.net MVC and how to choose between them

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,715
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
0
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Mvc webforms

  1. 1. ASP.NET WebForms vs ASP.Net MVC comparison
  2. 2. Agenda• ASP.net Web form vs MVC Pros• ASP.net Web form vs MVC Cons• Compare the run-time stack for Web Forms and ASP.NET MVC.• When to use ASP.net WebForm or MVC ?
  3. 3. Pros ASP.NET MVC ASP.NET WebFormsProvides fine control over rendered HTML. Provides very good RAD development capabilities.Cleaner generated HTML. Great designer support in VS.Superior separation between UI and code. Ease of development for data-heavy LOB applications.Easier to unit test. Very rich control libraries and third party vendor support.Can support multiple view engines. A familiar event-driven model when compared to Windows Forms development, and so easy forBy default uses RESTful intefaces for URLs – so better SEO. developers to pick up.No ViewState (this may also be a weakness).Typecal size of page is small.Easy integration with frameworks like JQuery.
  4. 4. Cons ASP.NET MVC ASP.NET WebFormsNot event driven, so maybe difficult for people UI logic coupled with the code, and thus is hardwho know only ASP.net Webforms to wrap to separate.their minds around it.Third party control library support is not that Harder to unit test, so difficult to employ TDD.strong.No ViewState(this is also a strength). Heavy page sizes due to view state management.
  5. 5. Compare the run-time stack for Web Forms and ASP.NET MVC.As long as the viewengine is based on WebForms, the view is anASPX file with a regularcode-behind classwhere you can handleclassic events such asInit, Load, PreRender,plus control-specificevents such asRowDataBound for aGridView control.
  6. 6. When to use ASP.net WebForm or MVC?
  7. 7. Develop web application Yes Considering TDD ?ASP.NET MVC ASP.NET WebForm
  8. 8. Develop web application Considering TDD ? NoHeavy Data Yes drivenapplication No ASP.NET MVC ASP.NET WebForm
  9. 9. Develop web application Considering TDD ? No Need WinForms like Yes programmingHeavy Data interface drivenapplication No ASP.NET MVC ASP.NET WebForm
  10. 10. Develop web application Considering TDD ? No Need WinForms like programmingHeavy Data interface No Need RAD driven Developmentapplication Yes ASP.NET MVC ASP.NET WebForm
  11. 11. Develop web application Considering TDD ? No Need Need fine WinForms like control on programming Yes html andHeavy Data interface separation Need RAD between html driven Development and codeapplication No ASP.NET MVC ASP.NET WebForm
  12. 12. Thank you• Prepared by : • Muhammad Alaa

×