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