Saturday, 18 June 2011

Why prefer ASP.NET MVC over Web Forms?

  1. Simple html ids are available with web forms, without the mysterious $ prefixes. These simpler tags are easier to use with JavaScript
  2. The page life-cycle is much simpler. It's just http request-response. The web forms page event cycle is no longer there.
  3. Code behind files are no more. It's easier to properly model the problem with code.
  4. URLs are easier to control, making it easy for users to bookmark pages.
  5. No more oblique web forms with its server controls page events, viewstate, messy html.
  6. Much easier to write simple JavaScript and Ajax
  7. Far easier to test.

No comments: