asp.net.ph

HtmlInputButton Constructor ( String )

System.Web.UI.HtmlControls Namespace   HtmlInputButton Class


Initializes a new instance of an HtmlInputButton class using the specified button type.

[ VB ]
Overloads Public Sub New ( _
   ByVal type As String _
) 

[ C# ]
public HtmlInputButton (
   String type
);

[ C++ ]
public: HtmlInputButton (
   String* type
);

[ JScript ]
public function HtmlInputButton (
   type : String
);

Parameters

type
The input button type.

Remarks

The following table shows the different possible values for the type parameter.

Value Description
button A command button.
submit A button that submits the form to the server.
reset A button that clears the form.

This constructor sets the initial TagName property value to the value of the given type parameter.

Example

The below code shows how to create a new instance of an HtmlInputButton control using the overloaded constructor.

void SubmitBtn_Click ( Object source, EventArgs e ) {
   HtmlInputButton mySubmitButton = new HtmlInputButton ( "submit" );     
}
  C# VB

See Also

HtmlInputButton Members   HtmlInputButton Constructor Overload List Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph