Chapter 10. Using Text Boxes to Collect Input

<feature><title></title>

In this hour, we will cover

  • Creating multiline text boxes

  • Creating password text boxes

  • Specifying the number of columns in a text box

  • Indicating the maximum number of characters that can be entered into a text box

  • Changing the look and feel of the text box by changing the font size, font name, and color of the text box

</feature>

In Hour 9, “Web Form Basics,” we examined how to collect user input through an ASP.NET page. In doing so we created a BMI Calculator that that prompts visitors for two pieces of information: their height and weight. Two TextBox Web controls were used to collect this information.

The TextBox Web control contains a number of properties that specify its appearance. ...

Get Sams Teach Yourself ASP.NET 3.5 in 24 Hours, Complete Starter Kit now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.