System.Web.UI.WebControls.Image.AlternateText Property

Gets or sets the alternate text displayed in the System.Web.UI.WebControls.Image control when the image is unavailable. Browsers that support the ToolTips feature display this text as a ToolTip.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

Use this property to specify the text to display if the image specified in the Image.ImageUrl property is not available. In browsers that support the ToolTips feature, this text also displays as a ToolTip.

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: 1.0.5000.0, 2.0.0.0