Learning the TextBox Web Control Basics

As you already know, when an ASP.NET Web page is visited, its Web controls are rendered into HTML markup. The Label Web control, for example, is rendered as a <span> tag whose content is the Label's Text property. The TextBox Web control, as we saw in the previous hour, is rendered into an <input> tag whose type attribute is set to text.

TextBox Web controls are used when user input is needed. Textboxes are ideal for collecting user input that is general text, such as a person's name, mailing address, or credit card number.

For certain types of user input, a textbox might not be ideal. In the next hour we ...

Get SAMS Teach Yourself ASP.NET in 24 Hours now with O’Reilly online learning.

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