Image.AlternateText Property
.NET Framework 2.0
Gets or sets the alternate text displayed in the Image control when the image is unavailable. Browsers that support the ToolTips feature display this text as a ToolTip.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
[LocalizableAttribute(true)] [BindableAttribute(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 displayed in the Image control when the image is unavailable.Use this property to specify the text to display if the image specified in the 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 LocalizableAttribute and ASP.NET Globalization and Localization.
| Topic | Location |
|---|---|
| How to: Add Image Web Server Controls to a Web Forms Page | Building ASP .NET Web Applications |
| How to: Add Image Web Server Controls to a Web Forms Page | Building ASP .NET Web Applications |
| Walkthrough: Creating an Accessible Web Application | Building ASP .NET Web Applications in Visual Studio |
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.
Community Additions
ADD
Show: