asp.net.ph

HotSpot.PostBackValue Property

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.

Syntax


Inline <asp:hotspot postbackvalue = strName ... >
Script HotSpot.PostBackValue [ = strName ]

Property Value


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.

Remarks

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.

Example

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 

See Also

HotSpot.HotSpotMode Property   HotSpot.NavigateUrl 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