This delegate defines the required signature for all click events raised when a user clicks an image-based ASP.NET server control. You must use the signature defined by this delegate for any OnServerClick event handlers that you create for an HtmlInputImage server control or any OnClick event handlers that you create for an ImageButton Web server control.
If you create a custom image-based ASP.NET server control that users can click, use this delegate to define the events associated with that user action.
// Define the event handler that uses coordinate information through ImageClickEventArgs.void ImageButton_Click(object sender, ImageClickEventArgs e)
Label1.Text = "You clicked the ImageButton control at the coordinates: (" +
e.X.ToString() + ", " + e.Y.ToString() + ")";
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)