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. The display width can also be set by the Width 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.
An example:
<asp:TextBox ID="EmailText" runat="server" MaxLength="100"/>
A textbox class would render and Input of Type Text in the client HTML. The markup rendered by default for this control might not conform
to accessibility standards such as the Web Content Accessibility
Guidelines 1.0 (WCAG) priority 1 guidelines. For details about accessibility support for this control, see ASP.NET Controls and Accessibility.
Revision number 5, Wednesday, September 23, 2009 5:02:32 PM by vik20000in
You must Login to comment.
New
Sat, Feb 27, 2010 4:56 PM
by
|
Asp.net 2.0 Cross Post backing
This is new Concept Introduce in Asp.net 2.0, This is used to Passing the values from one page to Certain page using PostbakUrl property for Button, LinkButton, and Image Button from that easily values can be access by prevoius pageBelow is example For the
|
Revision #5
Sun, Jun 20, 2010 9:16 AM
by
|
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
|
Revision #3
Sat, Feb 16, 2008 5:45 AM
by
|
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();
|