TextBox Control
You can use the TextBox control for both user input and read-only text display. You can configure it to be single-line or multiline, or to act as a password entry box, hiding the text being typed in it. If you set it to multiline, it automatically wraps the text it contains unless the Wrap property is set to false. Its Text property sets and retrieves the text content within the box. The text it contains can exceed the length of the control displayed on the page, in which case the beginning of the text is scrolled off to the left of the box.
Table 4-2 lists the frequently used properties of the TextBox control. If you omit any of these values from the control, the default value will apply. All the properties listed in the table are read/write properties.
Table 4-2. Some properties specific to the TextBox control
Name | Type | Values | Description |
|---|---|---|---|
| Boolean |
| Determines whether automatic postback to the server will occur if the user changes the contents of the control and then selects another control on the form. If |
|
|
| Width of the text box as measured in the width of the widest characters in the current font. Default is |
|
|
| Maximum number of characters ... |