System.Web.UI.ImageClickEventArgs Class

Provides data for any events that occur when a user clicks an image-based ASP.NET server control, such as the System.Web.UI.HtmlControls.HtmlInputImage or System.Web.UI.WebControls.ImageButton server controls. This class cannot be inherited.

See Also: ImageClickEventArgs Members


public sealed class ImageClickEventArgs : EventArgs


This class passes the location where a user clicked an System.Web.UI.HtmlControls.HtmlInputImage server control or an System.Web.UI.WebControls.ImageButton Web server control. Clicking an System.Web.UI.HtmlControls.HtmlInputImage server control causes a System.Web.UI.HtmlControls.HtmlInputImage.ServerClick event to occur, while clicking an System.Web.UI.WebControls.ImageButton server control causes a System.Web.UI.WebControls.ImageButton.Click event to occur. You can then use event handlers to programmatically respond to the event based on the value of these coordinates.


The origin coordinates (0,0) are located at the upper left corner of the image.

Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.


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