Making a Web Form
Web forms are regions of an ASP.NET Web page where various controls can be placed. This establishes the user interface of a Web page. Each control can be customized for appearance and linked to events to manage Web page behavior. Let's look at a simple Web form first, and then look at the manipulation of Web form controls.
A Simple Web Form
Listing 20.2 shows how to create a simple Web form. This Web form has a few server controls with common attributes. It also has a Button server control hooked to an event method. Please see the .NET Frameworks SDK documentation for more in-depth information on individual classes.
Listing 20.2. A Simple Web Form: WebFormEx.aspx
<%@ Page language="C#" Description="Web Form Example" %> <HTML> ... |
Get C# Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.