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 Syntax TextBox Web Server Control HTML INPUT Element