Raises the ImageMap.Click event for the System.Web.UI.WebControls.ImageMap control.
- e
- An argument of type System.Web.UI.WebControls.ImageMapEventArgs that contains the event data.
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.
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The ImageMap.OnClick(ImageMapEventArgs) method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.