HtmlInputPassword Constructor ()
.NET Framework (current version)
Initializes a new instance of the HtmlInputPassword class using default values.
Assembly: System.Web (in System.Web.dll)
Use this constructor to create and initialize a new instance of the HtmlInputPassword control using default values. It creates a password type text box control.
The following table shows the initial property value for an instance of HtmlInputPassword.
Property | Initial Value |
|---|---|
The "password" literal string. |
The following code example demonstrates how to programmatically add HtmlInputText, HtmlInputPassword, and HtmlInputSubmit controls to a Web Forms page using default constructors to create a simple login screen.
.NET Framework
Available since 2.0
Available since 2.0
Show: