Text Box control

The TextBox control is used to get information, such as text, numbers, and dates, from users in a WebForm. By default, a TextBox control is a single-line control that enables users to type characters in a single line only. However, you can also set the TextBox control as a multiline control. A multiline text box displays multiple lines and allows text wrapping.

A TextBox control can also be used to accept passwords. A TextBox control that is used to accept passwords masks the characters typed by users, displaying them as asterisks (*).

You can set the appearance of a TextBox control by using its properties, such as BackColor or ForeColor. You can also change the TextMode property of a TextBox control to determine whether a TextBox control functions as a text box to accept a password, a single line of text, or multiple lines of text.

0 0

Post a comment