asp.net.ph

Skip Navigation LinksHome > ASP.NET Web Forms > Web Forms Server Controls > Controls You Can Use on Web Forms > ASP.NET HTML WebControls

ASP.NET HTML Controls

  Section Index


HtmlInputText Server Control

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

The HtmlInputText control creates a single-line text entry control.

HtmlInputText supports two behaviors:

  • If <input type=text>, the control behaves as a standard text box.
  • If <input type=password>, the input text is rendered in such a way as to conceal the actual value of the entry as the user enters it.

Note that although the password control does not display the actual text, this mechanism affords only light security protection. Even if the password is masked by user agents from casual observers, it is transmitted to the server in clear text, and may be read by anyone with low-level access to the network.

The following sample illustrates using the HtmlInputText control in both Text and Password modes.

HtmlInputText Control Example
Run Sample | View Source
See Also

HtmlInputText Control Syntax   TextBox Web Server Control   HTML INPUT Element

More ...
Back to top


© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

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