ImageField.AlternateText Property
Assembly: System.Web (in system.web.dll)
[LocalizableAttribute(true)] public: virtual property String^ AlternateText { String^ get (); void set (String^ value); }
/** @property */ public String get_AlternateText () /** @property */ public void set_AlternateText (String value)
public function get AlternateText () : String public function set AlternateText (value : String)
Property Value
The alternate text for an image displayed in the ImageField object. The default is an empty string (""), which indicates that this property is not set.Use the AlternateText property to specify the alternate text for the images displayed in an ImageField object. The alternate text is displayed when an image cannot be loaded or is unavailable. Browsers that support the ToolTips feature also display this text as a ToolTip.
Note |
|---|
| When this property is set, all images displayed in an ImageField object share the same alternate text. As an alternative, you can bind the alternate text to a field in a data source by setting the DataAlternateTextField property instead of this property. This allows you to have different alternate text for each image displayed. If both the AlternateText and DataAlternateTextField properties are set, the DataAlternateTextField property takes precedence. |
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 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Note