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.
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: