Name
HtmlInputButton
Synopsis
This class can represent the HTML <input type=button>
tag, the <input type=submit>
tag, and the <input type=reset>
tag. Reset buttons are
used to clear input fields on the current form and do not trigger a postback.
Submit and input buttons in ASP.NET trigger a postback and provide a ServerClick
event
that you can use to perform other tasks. Additionally, you can use the CausesValidation
property to skip postback page validation when this button is clicked.
Public Class HtmlInputButton : Inherits HtmlInputControl : Implements_ System.Web.UI.IPostBackEventHandler ' Public Constructors Public Sub New() Public Sub New(ByVal type As String) ' Public Instance Properties Public Property CausesValidation As Boolean ' Protected Instance Methods Overrides Protected Sub OnPreRender(ByVal e As EventArgs) Overridable Protected Sub OnServerClick( ByVal e As EventArgs) Overrides Protected Sub RenderAttributes( ByVal writer As System.Web.UI.HtmlTextWriter) ' Events Public Event ServerClick As EventHandler End Class
Hierarchy
System.Object→ System.Web.UI.Control(System.ComponentModel.IComponent
, System.IDisposable
, System.Web.UI.IParserAccessor
, System.Web.UI.IDataBindingsAccessor)→HtmlControl(System.Web.UI.IAttributeAccessor)→HtmlInputControl→ HtmlInputButton(System.Web.UI.IPostBackEventHandler)
Get ASP.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.