See Also: HotSpot Members
You cannot directly create instances of the abstract System.Web.UI.WebControls.HotSpot class. Instead, this class is inherited by the System.Web.UI.WebControls.CircleHotSpot, System.Web.UI.WebControls.RectangleHotSpot, and System.Web.UI.WebControls.PolygonHotSpot classes to provide the common basic functionality for a hot spot. You must derive from the System.Web.UI.WebControls.HotSpot class to create a custom hot spot class that represents a unique shape that you define. However, you can define most shapes using the System.Web.UI.WebControls.CircleHotSpot, System.Web.UI.WebControls.RectangleHotSpot, and System.Web.UI.WebControls.PolygonHotSpot classes.
When a System.Web.UI.WebControls.HotSpot in an System.Web.UI.WebControls.ImageMap control is clicked, the page either navigates to a URL, generates a postback to the server, or does nothing. The HotSpot.HotSpotMode property specifies this behavior. To navigate to a URL, set the HotSpot.HotSpotMode property to HotSpotMode.Navigate. Use the HotSpot.NavigateUrl property to specify the URL to navigate to. To post back to the server, set the HotSpot.HotSpotMode property to HotSpotMode.PostBack. Use the HotSpot.PostBackValue property to specify a name for the System.Web.UI.WebControls.HotSpot object. This name will be passed in the System.Web.UI.WebControls.ImageMapEventArgs event data when the System.Web.UI.WebControls.HotSpot object is clicked. If you want the System.Web.UI.WebControls.HotSpot object to have no behavior set the HotSpot.HotSpotMode property to HotSpotMode.Inactive.
Alternately, you can use the ImageMap.HotSpotMode property on the containing System.Web.UI.WebControls.ImageMap control to specify a System.Web.UI.WebControls.HotSpot object's behavior. For more information, see ImageMap.HotSpotMode.