
30
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Chapter 3Web Forms
3
Web Forms
Web Forms are an ASP.NET technology used to create programmable web pages.
They are the primary building block of ASP.NET Web Applications. The main
goal of Web Forms is to bring the same productivity to web applications that
Visual Basic brought to Windows applications. Web Forms consist of the user
interface (UI) and the UI logic written on the server side. The UI and UI logic can
reside either in the same file or in separate files.
Web Forms in ASP.NET offer a number of advantages over ASP and other tech-
nologies for generating web applications. ASP.NET Web Forms:
• Provide support for any HTML 3.2–compliant browser. Even ASP.NET
Server Controls that provide advanced client-side functionality will gracefully
degrade for browsers that do not support DHTML or script. These controls
will, however, take advantage of such support in browsers such as Internet
Explorer 5.0 or later.
• Are built on the Common Language Runtime and provide all the benefits of
the runtime, such as managed execution, type safety, and inheritance.
• Can be built with any Common Language Runtime language, including C#,
Visual Basic .NET, and JScript .NET.
• Can be created using rapid application development tools such as Visual Stu-
dio .NET. You can build a Web Forms page simply