asp.net.ph

HotSpot Class

System.Web.UI.WebControls Namespace


.NET Framework version 2.0

Implements the basic functionality common to all hot spot shapes.

HotSpot Class Members

Collapse   Properties

Visibility Name Value Type Accessibility
public AccessKey String [ Get , Set ]
public AlternateText String [ Get , Set ]
public HotSpotMode HotSpotMode [ Get , Set ]
public NavigateUrl String [ Get , Set ]
public PostBackValue String [ Get , Set ]
public TabIndex Int16 [ Get , Set ]
public Target String [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
public GetCoordinates ( ) String
protected LoadViewState ( Object savedState ) Void
protected SaveViewState ( ) Object
public ToString ( ) String
protected TrackViewState ( ) Void

Remarks

This class is inherited by the CircleHotSpot, RectangleHotSpot, and PolygonHotSpot classes to provide the common basic functionality for a hot spot. You cannot directly create instances of the abstract HotSpot class.

To create a custom hot spot class that represents a unique shape that you define, you must derive from the HotSpot class. However, you can define most shapes using the CircleHotSpot, RectangleHotSpot, and PolygonHotSpot classes.

When a HotSpot in an ImageMap control is clicked, the page either navigates to a URL, generates a postback to the server, or does nothing. The HotSpotMode property specifies this behavior.

To navigate to a URL, set the HotSpotMode property to HotSpotMode.Navigate. Use the NavigateUrl property to specify the URL to navigate to.

To post back to the server, set the HotSpotMode property to HotSpotMode.PostBack. Use the PostBackValue property to specify a name for the HotSpot object. This name will be passed in the ImageMapEventArgs event data when the HotSpot object is clicked. If you want the HotSpot object to have no behavior, set the HotSpotMode property to HotSpotMode.Inactive.

Alternately, you can use the HotSpotMode property on the containing ImageMap control to specify a HotSpot object's behavior.

Notes to Inheritors: When you inherit from HotSpot, you must override the following members: GetCoordinates and MarkupName.

See Also

ImageMap Class   ImageMap.HotSpotMode Property Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph