System.Web.UI.WebControls.ImageMapEventArgs Class

Provides data for the ImageMap.Click event of an System.Web.UI.WebControls.ImageMap control.

See Also: ImageMapEventArgs Members

Syntax

public class ImageMapEventArgs : EventArgs

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 object to raise the ImageMap.Click event, you must first set either the ImageMap.HotSpotMode property or the HotSpot.HotSpotMode property to HotSpotMode.PostBack. To control the actions programmatically that are performed when a postback System.Web.UI.WebControls.HotSpot is clicked, provide an event handler for the ImageMap.Click event.

A HotSpot.PostBackValue property stores a string that is associated with the behavior of the System.Web.UI.WebControls.HotSpot object when clicked. This string is passed in the System.Web.UI.WebControls.ImageMapEventArgs event data when the System.Web.UI.WebControls.HotSpot is clicked.

Requirements

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