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 ?
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.
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.
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.
Develop web application Yes Considering TDD ?ASP.NET MVC ASP.NET WebForm
Develop web application Considering TDD ? NoHeavy Data Yes drivenapplication No ASP.NET MVC ASP.NET WebForm
Develop web application Considering TDD ? No Need WinForms like Yes programmingHeavy Data interface drivenapplication No ASP.NET MVC ASP.NET WebForm
Develop web application Considering TDD ? No Need WinForms like programmingHeavy Data interface No Need RAD driven Developmentapplication Yes ASP.NET MVC ASP.NET WebForm
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