Hour 10. Using Textboxes to Collect Input

In the previous hour, “Web Form Basics,” we examined how to collect user input through an ASP.NET Web page. To summarize, we saw that in order to retrieve user input, a Web form needs to be used. Inside the Web form, Web controls are placed to allow user input.

For example, in the last hour we looked at a BMI Calculator ASP.NET Web page. For this Web page, the user needed to enter two pieces of information: height and weight. To enter this information, two TextBox Web controls were used.

The TextBox Web control contains a number of properties that can be set to specify the appearance of the resulting textbox. The TextMode property of the TextBox Web control can be set to MultiLine, for example, which ...

Get SAMS Teach Yourself ASP.NET in 24 Hours 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.