HtmlInputPassword Constructor ()

 

Initializes a new instance of the HtmlInputPassword class using default values.

Namespace:   System.Web.UI.HtmlControls
Assembly:  System.Web (in System.Web.dll)

public:
HtmlInputPassword()

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

Type

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: