TextBox

 Rate It (0)

The TextBox server control is an input control that lets the user enter text. By default, the TextMode property is set to SingleLine, which creates a text box with only one line. You can also set the property to MultiLine or Password. MultiLine creates a text box with more than one line. Password creates a single-line text box that masks the value entered by the user.

The display width of the text box is determined by its Columns property. If the text box is a multiline text box, the display height is determined by the Rows property.

Use the Text property to determine the contents of the TextBox control. You can limit the number of characters that can be entered in the control by setting the MaxLength property. Set the Wrap property to true to specify that the contents of the cell should automatically continue on the next line when the end of the text box is reached.

Revision number 2, Monday, February 25, 2008 1:19:51 AM by mbanavige

Comments

Related Articles

Calendar Extender

The AJAX Control Toolkit has a CalenderExtender extender control that pops up a calendar whenever the user clicks on the target control, or a popup control. The extender is commonly used to popup a calendar for a textbox, like in an airline reservation system

Javascript to display time on Web page

JavaScript sample to continuously display the current time on the web page. Continuously means that the textbox value will be updated with the current time every second. script type="text/javascript"> function ShowTime() { var dt = new Date();

Input and Data Validation

Garbage in, garbage out. You can avoid data cleanup tasks on the backend by avoiding bad data coming in. ASP.NET validation controls and third party validation controls help you receive the right data in the right format. In addition, the AJAX Control Toolkit

Shortcuts

Table of Contents

Top Wiki Contributors

(last 30 days)

  1. ssg31415926 (7)
  2. vik20000in (2)
  3. tmorton (1)
  4. sambeetpatra (1)
  5. mbanavige (1)
  6. Jos Branders (1)
  7. anonymouswrites (1)

Advertise Here

Microsoft Communities
Page view counter