Wednesday, August 27, 2008

The TextBox Control [Common Web Server Controls]

The TextBox Control

1.The TextBox control collects text from the user. The Text property gets or sets the contents of the TextBox control.

2.The TextBox contains a TextMode property that you can set to SingleLine (default), MultiLine, or Password. SingleLine allows the user to enter a single line of text, Multi-Line allows the user to enter many lines of text, and Password creates a single-line text box that masks the value entered by the user.

3.The Columns property sets the maximum width of the TextBox; the Rows property sets the maximum height of a multiline TextBox.

4.The MaxLength property limits the number of characters that can be entered; the Wrap property automatically continues the text on the next line when the end of the text box is reached.

No comments: