asp.net.ph

HtmlInputText Class

System.Web.UI.HtmlControls Namespace


Allows programmatic access to the HTML <input type=text> and <input type=password> elements on the server.

HtmlInputText Class Members

Collapse   Constructors

Visibility Constructor Parameters
public HtmlInputText ( )
public HtmlInputText ( String type )

Collapse   Properties

Visibility Name Value Type Accessibility
public MaxLength Int32 [ Get , Set ]
public Size Int32 [ Get , Set ]
public Value String [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
protected LoadPostData ( String postDataKey , NameValueCollection postCollection ) Boolean
protected OnServerChange ( EventArgs e ) Void
protected RaisePostDataChangedEvent ( ) Void
protected RenderAttributes ( HtmlTextWriter writer ) Void

Collapse   Events

Multicast Name Type
multicast ServerChange EventHandler

Remarks

Use the HtmlInputText control to create a single line text box that allows the user to enter text or a password. The Size property allows to specify the width of the text box, while the MaxLength property allows to limit the number of characters that can be entered in the text box.

The HtmlInputText control provides a ServerChange event that is raised when its Value changes between posts to the server. This allows you to define a custom handler to perform some action each time the event is raised.

The HtmlInputText control does not not provide a built-in way to post back to the server. You must provide another control on the Web page that supports posting to the server, such as an HtmlButton control, to send the value of the control back to the server.

To create a multiline text box, use the HtmlTextArea control.

For examples illustrating use of this control, see the individual member types of this class. For syntax information, see HtmlInputText in ASP.NET Syntax for HTML Controls.

See Also

HtmlInputButton   HtmlInputRadioButton   HtmlInputCheckBox   HtmlInputImage   HtmlInputHidden   HtmlInputFile   HtmlTextArea Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph