System.Web.UI.HtmlControls.HtmlInputImage Class

Allows programmatic access to the HTML <input type= image> element on the server.

See Also: HtmlInputImage Members


public class HtmlInputImage : HtmlInputControl, System.Web.UI.IPostBackDataHandler, System.Web.UI.IPostBackEventHandler


Use the System.Web.UI.HtmlControls.HtmlInputImage control to create a button that displays an image. You can programmatically control the action associated with the System.Web.UI.HtmlControls.HtmlInputImage control by providing an event handler for the HtmlInputImage.ServerClick event.

The coordinates where the user clicks an System.Web.UI.HtmlControls.HtmlInputImage control can be determined by using the System.Web.UI.ImageClickEventArgs.X and System.Web.UI.ImageClickEventArgs.Y properties of the System.Web.UI.ImageClickEventArgs object that is passed as a parameter to the user-defined event handler.

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


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