Examining the TextBox Web Control's Properties

So far in this hour, we have looked at one property in particular—the TextMode property, which is used to specify whether the TextBox Web control should be rendered as a standard textbox, a multiline textbox, or a password textbox. In addition to this property, there are a number of other TextBox Web control properties that we will examine for the remainder of this hour.

Specifying the Length of a Textbox

There may be times when you need to use the TextBox Web control to collect information from a user, such as age or the two-letter home state abbreviation. In such cases the user's input will be only a few characters long. However, as you can see with the age textbox in Figure 10.5, the textbox displayed ...

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.