System.Web.UI.WebControls.ImageMap.Click Event

Occurs when a System.Web.UI.WebControls.HotSpot object in an System.Web.UI.WebControls.ImageMap control is clicked.

Syntax

[System.ComponentModel.Category("Action")]
public event ImageMapEventHandler Click

Remarks

The ImageMap.Click event is raised when a System.Web.UI.WebControls.HotSpot object in an System.Web.UI.WebControls.ImageMap control is clicked. To allow a System.Web.UI.WebControls.HotSpot to raise the ImageMap.Click event, you must first set either the ImageMap.HotSpotMode property on the System.Web.UI.WebControls.ImageMap control or the HotSpot.HotSpotMode property on the System.Web.UI.WebControls.HotSpot object to HotSpotMode.Postback.

To programmatically control the actions performed when a postback System.Web.UI.WebControls.HotSpot is clicked, provide an event handler for the ImageMap.Click event that contains the code to run when the event is raised.

Raising an event invokes the event handler through a delegate. For more information about handling events, see Consuming Events.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0