Chapter 20: Web Forms

Part V
ASP.NET and Web Services
Chapter 20
Web Forms
  • Requirements for Working with ASP.NET
  • Features of ASP.NET
  • An Introduction to Web Forms
  • Creating a Basic Web Forms Page
  • Web Forms Controls
  • Creating a Web Forms Page with Control Events
  • Maintaining State: Persisting Values Between Round-Trips
  • Creating a Web Forms Page That Persists Values
  • Working with Data in Web Forms

As a C# programmer, you’ll probably want to create applications that run on the Web. How can you accomplish this? Along with new languages (including C#, of course) and a new Microsoft Windows Forms technology, the Microsoft .NET Framework has introduced a new technology for developing Web applications: Microsoft ASP.NET. ASP.NET works as an extension of the basic Web server facilities of Microsoft Internet Information Services (IIS), providing you with a .NET way to program Web pages. Using ASP.NET, you can develop Web server–based applications, including both the application user interface in the form of programmable HTML pages, known as Web Forms pages, and Web-based components, known as Web services. In this chapter, we’ll concentrate on Web Forms pages—what they are, how they work, and how to program them. In Chapter 21, you’ll learn how to create Web services as Web-based components.

ASP.NET and Web Forms are a big area of the .NET Framework. (Entire books have been devoted to both topics. See, for example, Designing Microsoft ASP.NET Applications, by Douglas J. Reilly [Microsoft Press, 2002] and Building Web Solutions with ASP.NET and ADO.NET, by Dino Esposito [Microsoft Press, 2002].) This chapter can’t give you all of the in-depth information you need to become a Web Forms expert, but it will provide you with a thorough grounding in Web Forms. By the end of the chapter, you’ll have a good grasp of what Web Forms are and how to create them.

Part III: Programming Windows Forms