System.Web.UI.HtmlControls.HtmlInputButton Class

Allows programmatic access to the HTML <input type= button>, <input type= submit>, and <input type= reset> elements on the server.

See Also: HtmlInputButton Members


public class HtmlInputButton : HtmlInputControl, System.Web.UI.IPostBackEventHandler


Use the System.Web.UI.HtmlControls.HtmlInputButton class to create button controls on a Web page. An <input type=button> HTML element is a push button with no default behavior when clicked. An <input type=submit> HTML element is a button that submits a form when clicked. An <input type=reset> HTML button resets all controls to their initial values when clicked.

In ASP.NET 2.0, use the System.Web.UI.HtmlControls.HtmlInputReset class and the System.Web.UI.HtmlControls.HtmlInputSubmit class to create Reset and Submit buttons, respectively.

For a list of initial property values for an instance of System.Web.UI.HtmlControls.HtmlInputButton, see the HtmlInputButton.#ctor constructor.


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