Updated: July 9, 2020 (May 10, 2010)

  Sidebar

ASP.NET Web Forms vs. MVC

My Atlas / Sidebar

828 wordsTime to read: 5 min
Rob Sanfilippo by
Rob Sanfilippo

Before joining Directions on Microsoft, Rob worked at Microsoft for 14 years where he designed technologies for Microsoft products and... more

ASP.NET offers two primary development patterns for creating Web sites: Web Forms and Model-View-Controller (MVC). Choosing a pattern depends on several factors, and in some cases it may be appropriate to use both in the same Web site. Although MVC is newer, Microsoft will continue to offer and improve on tooling and features of both patterns.

The Web Forms pattern was originally the only choice when developing with ASP.NET. It uses a control- and event-based programming model similar to the original Visual Basic, in which developers use a designer to add controls to a form and write code to handle the events (e.g., entering data into a text box or clicking a button) associated with these controls. Web Forms’ server-side controls encapsulate HTML, JavaScript, and Cascading Style Sheets (CSS), and handle data binding, reducing code writing requirements for developers. The server side HTML, script, and .NET code can also be modified in the IDE. When the form is requested on a deployed Web site by a browser user, its file is loaded, its server-side script and controls are run, and HTML and client-side script are generated and returned to the client. The primary benefit of Web Forms has been to lower the barrier to developing Web applications by implementing an event-driven programming model familiar to many developers from PC programming. SharePoint Server also uses Web Forms for site development, so departmental sites that rely on SharePoint should use the Web Forms pattern.

Atlas Members have full access

Get access to this and thousands of other unbiased analyses, roadmaps, decision kits, infographics, reference guides, and more, all included with membership. Comprehensive access to the most in-depth and unbiased expertise for Microsoft enterprise decision-making is waiting.

Membership Options

Already have an account? Login Now