O'Reilly logo

Applied ASP.NET 4 in Context by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required