Working with Forms

In this section, we’ll build a web application that is based on a form. HTML forms (which rely on the HTML <form> element) are the foundation for web applications. As with our previous examples, we’ll start with the HTML and then add the C# code as a code-behind file. As we create this project, you’ll learn how you can build on the HTML control model that you saw in Chapter 4 to define an HTML form and process the form when it is submitted to the ASP.NET server.

Creating a Form

As with the previous chapters, we need to create an ASP.NET project before we can begin to explore the features that are the focus of this chapter. To create the project, follow these steps:

  1. In Visual Studio, select File New Project.
  2. Click the Visual ...

Get Applied ASP.NET 4 in Context 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.