asp.net.ph

HotSpot.AlternateText Property

System.Web.UI.WebControls Namespace   HotSpot Class


.NET Framework version 2.0

Sets or retrieves the alternative text to display for a HotSpot object in an ImageMap control when the image is unavailable or renders to a browser that does not support images.

Syntax


Inline <asp:hotspot alternatetext = strAltTxt ... >
Script HotSpot.AlternateText [ = strAltTxt ]

Property Value


strAltTxt String that specifies the alternative text to display in place of the HotSpot when the ImageMap control's image is unavailable.

The property is read/write with no default value.

Remarks

Use the AlternateText property to specify the caption to display for a HotSpot object in an ImageMap control when the image specified by the ImageUrl property is unavailable.

When an ImageMap control is rendered to a browser that does not support images, instead of displaying an image, it renders a hyperlink for each HotSpot in the ImageMap control. The control retrieves the text to display for each hyperlink from the AlternateText property for each HotSpot. When a user clicks one of the hyperlinks, it behaves like a HotSpot by either navigating to a specified URL, generating a postback to the server, or doing nothing.

In browsers that support tooltips, the AlternateText property also displays as a ToolTip when the mouse hovers over the HotSpot.

Specifying alternate text assists visually impaired users, those who use speech synthesizers, those who have configured their graphical user agents not to display hotspots, etc.

Note that browsers differ in how they handle cases of omitted alternate text.

See Also

Image.AlternateText 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