System.Web.UI.WebControls.HotSpot.AlternateText Property

Gets or sets the alternate text to display for a System.Web.UI.WebControls.HotSpot object in an System.Web.UI.WebControls.ImageMap control when the image is unavailable or renders to a browser that does not support images.

Syntax

[System.ComponentModel.Bindable(true)]
[System.ComponentModel.DefaultValue("")]
[System.ComponentModel.NotifyParentProperty(true)]
[System.ComponentModel.Localizable(true)]
public virtual string AlternateText { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the HotSpot.AlternateText property to specify the text to display for a System.Web.UI.WebControls.HotSpot object in an System.Web.UI.WebControls.ImageMap control when the image specified by the Image.ImageUrl property is unavailable.

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

When the System.Web.UI.WebControls.ImageMap control renders to a browser that supports the ToolTips feature, the value of the HotSpot.AlternateText property is displayed as a ToolTip for the System.Web.UI.WebControls.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 System.ComponentModel.LocalizableAttribute and ASP.NET Globalization and Localization.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0