System.Web.UI.HtmlControls Namespace HtmlInputText Class
Initializes a new instance of the HtmlInputText class using the specified input control type.
[ VB ]
Overloads Public Sub New ( _
ByVal type As String _
)
[ C# ]
public HtmlInputText (
string type
);
[ C++ ]
public: HtmlInputText (
String* type
);
[ JScript ]
public function HtmlInputText (
type : String
);
- type
- A string that specifies the type of the control.
Use this constructor to create and initialize a new instance of the HtmlInputText class using the specified input control type.
Only the text or password type is currently supported. This constructor is designed to be able to create and initialize other text box types as they become available.
The below code shows how to create a new instance of an HtmlInputText class using the specified input control type.
HtmlInputText myControl = new HtmlInputText ( "password" );
Dim myControl As New HtmlInputText ( "password" ) |
|
C# |
VB |
HtmlInputText Members HtmlInputText Constructor Overload List