HtmlInputPassword Server Control Declarative Syntax
Creates a server-side control that maps to the input type="password" HTML element and allows you to create a single line text box to receive user input.
<input
Type="password"
Disabled="Disabled"
EnableViewState="False|True"
ID="string"
Visible="False|True"
OnDataBinding="OnDataBinding event handler"
OnDisposed="OnDisposed event handler"
OnInit="OnInit event handler"
OnLoad="OnLoad event handler"
OnPreRender="OnPreRender event handler"
OnServerChange="OnServerChange event handler"
OnUnload="OnUnload event handler"
runat="server"
Remarks
The HtmlInputPassword control is derived from the HtmlInputText class and is used to create a single-line text box that allows the user to enter a password.
Example
The following code example demonstrates how to use the HtmlInputPassword control declaratively with the HtmlInputSubmit, HtmlInputText, and HtmlInputReset controls to submit a user name and password.
Username:
<input id="Text1" type="text" runat="server" />
<br/>
Password:
<input id="Password1" type="password" runat="server" />
<br/>
<input id="Submit1" type="submit" value="Submit" runat="server" />
<input id="Reset1" type="reset" value="Clear" runat="server" />
Username:
<input id="Text1" type="text" runat="server" />
<br/>
Password:
<input id="Password1" type="password" runat="server" />
<br/>
<input id="Submit1" type="submit" value="Submit" runat="server" />
<input id="Reset1" type="reset" value="Clear" runat="server" />