Beginner to asp.net.. What should i choose webforms or mvc? -


possible duplicates:
advice on using asp.net webforms or mvc
how decide right, webforms or mvc when doing asp.net

i new web development , asp.net... going through asp.net website , 'n' number of question here in stackoverflow regarding webforms or mvc.... still beginner can't idea choose?

  • what should choose webforms or mvc?
  • if mvc,what should know before getting started it?
  • if webforms,what should know before getting started it?

in terms of specific reasons consider web forms new projects:

1) if using sharepoint. today sharepoint sites more naturally integrate web forms web-parts/pages in them. sharepoint team add mvc support in future - if site/solution integrates sharepoint today or new version coming out you'll find web forms easier to-do this.

2) if building application existing server control or set of server controls can provide lot of functionality. true lot of reporting scenarios (where can leverage charting controls) data editing scenarios involving grids (where can leverage data controls). there rich set of server-side controls have ajax functionality encapsulated within them lot of developers find useful common scenarios.

3) building application (typically intranet based) need support older browsers or have strict accessibility requirements rule out modern javascript frameworks, , must put lot of ui logic on server. if don't care seo (because intranet app) , don't care having complete control on html using controls built-in functionality can provide productivity.

in terms of specific reasons consider mvc new projects:

1) if building public facing web-site seo, semantic urls/html, , full control on html important. while asp.net 4 provide lot of new features web forms enable - mvc still provides more total control.

2) if use tdd workflow and/or unit test app. while can use mvp pattern web forms, mvc provides core approach naturally supports this.

3) if want build heavy ajax client-side app, total control on html/urls provided mvc can advantage. can still accomplish web forms (especially asp.net 4) - if want total client-side js control mvc more attractive option.

4) if want ability customize/extend every layer of web-framework, asp.net mvc provides hooks necessary to-do so. want different view engine, integrate ioc container, etc - mvc provides nice hooks.

from comments section:

http://weblogs.asp.net/scottgu/archive/2010/01/24/about-technical-debates-both-in-general-and-regarding-asp-net-web-forms-and-asp-net-mvc-in-particular.aspx


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -