DekGenius.com
[ Team LiB ] Previous Section Next Section

HtmlInputImagedisposable

System.Web.UI.HtmlControls (system.web.dll)class

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 : HtmlInputControl, System.Web.UI.
IPostBackDataHandler, System.Web.UI.IPostBackEventHandler {
// Public Constructors
   public HtmlInputImage( );
// Public Instance Properties
   public string Align{set; get; }
   public string Alt{set; get; }
   public int Border{set; get; }
   public bool CausesValidation{set; get; }
   public string Src{set; get; }
// Protected Instance Methods
   protected override void OnPreRender(EventArgs e);            // overrides System.Web.UI.Control
   protected virtual void OnServerClick(
        System.Web.UI.ImageClickEventArgs e);
   protected override void RenderAttributes(        // overrides HtmlInputControl
        System.Web.UI.HtmlTextWriter writer);
// Events
   public event ImageClickEventHandler ServerClick;
}

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 HtmlInputImage(System.Web.UI.IPostBackDataHandler, System.Web.UI.IPostBackEventHandler)

    [ Team LiB ] Previous Section Next Section