System.Web.UI.WebControls Namespace HotSpot Class
.NET Framework version 2.0
Gets or sets the name of the HotSpot object to pass in the event data when the HotSpot is clicked.
Inline |
<asp:hotspot postbackvalue = strName ... > |
Script |
HotSpot.PostBackValue [ = strName ] |
strName |
The name of the HotSpot object to pass in the event data when the HotSpot is clicked. |
The property is read only with no default value.
Use the PostBackValue property to specify a name for a HotSpot object. This name will be passed in the ImageMapEventArgs event data when the HotSpot is clicked. This property has an effect only when the HotSpotMode property is set to HotSpotMode.PostBack, to generate a postback to the server.
To programmatically control the actions performed when a HotSpot object is clicked, provide an event handler for the Click event.
The following example demonstrates using the PostBackValue property to specify a name for a HotSpot object, and how you can extract this value in response to a user click in an ImageMap control.
Each hot spot's PostBackValue property is set to a unique value, and on postback, the event handler determines this value, and for this demo, simply displays an appropriate response.
Show me
HotSpot.HotSpotMode Property HotSpot.NavigateUrl Property