Easy Tutorial
❮ Prop Webcontrol Checkboxlist Repeatlayout Prop Webcontrol Calendarday Date ❯

ASP.NET Image AlternateText Property



Definition and Usage

The AlternateText property is used to set or return the alternative text for an image.

This property specifies the text to be displayed if the image is not available.

In browsers (such as Internet Explorer) that support it, the alternative text is displayed as a tooltip.

Syntax

Property Description
text Specifies the alternative text for the image.

Example

The following example sets the AlternateText property for an Image control (where the image file does not exist):


❮ Prop Webcontrol Checkboxlist Repeatlayout Prop Webcontrol Calendarday Date ❯