Name

HtmlButton

Synopsis

This class represents the HTML 4.0 <button> tag, which is only supported in Internet Explorer 4.0 and later. It differs from other button types, including the standard HtmlInputButton control, because it can be composed from embedded HTML elements like images and other ASP.NET server controls. As with all buttons, it provides a click event that you can handle directly (HtmlInputButton.ServerClick) and a property that lets you disable automatic page validation when a postback is triggered by this control (HtmlInputButton.CausesValidation).

Public Class HtmlButton : Inherits HtmlContainerControl : Implements_
        System.Web.UI.IPostBackEventHandler
' Public Constructors
   Public Sub New() 
' 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)HtmlContainerControl HtmlButton(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.