HotSpot::AlternateText Property
Assembly: System.Web (in System.Web.dll)
Use the AlternateText property to specify the text 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.
When the ImageMap control renders to a browser that supports the ToolTips feature, the value of the AlternateText property is displayed as a ToolTip for the HotSpot.
The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see LocalizableAttribute and ASP.NET Globalization and Localization.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.