Name
HtmlInputImage
Synopsis
This class represents the HTML <input type=image>
element, which
creates a graphical button. Unlike HtmlButton
controls, HtmlInputImage
controls are supported
on all standard browsers. This class includes many of the same properties as HtmlImage
, such as settings for
alignment. It also includes the alternate text and Src
, which
specifies the file used for the button image. As with all button controls, it
provides a click event you can handle directly
(ServerClick
) and a
property that lets you disable automatic page validation when a postback is
triggered by this control
(CausesValidation
).
Public Class HtmlInputImage : Inherits HtmlInputControl : Implements_ System.Web.UI.IPostBackDataHandler,_ System.Web.UI.IPostBackEventHandler ' Public Constructors Public Sub New() ' Public Instance Properties Public Property Align As String Public Property Alt As String Public Property Border As Integer Public Property CausesValidation As Boolean Public Property Src As String ' Protected Instance Methods Overrides Protected Sub OnPreRender(ByVal e As EventArgs) Overridable Protected Sub OnServerClick( ByVal e As System.Web.UI.ImageClickEventArgs) Overrides Protected Sub RenderAttributes( ByVal writer As System.Web.UI.HtmlTextWriter) ' Events Public Event ServerClick As ImageClickEventHandler End Class
Hierarchy
System.Object→ System.Web.UI.Control(System.ComponentModel.IComponent
, System.IDisposable
, System.Web.UI.IParserAccessor
, System.Web.UI.IDataBindingsAccessor) ...
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.