ASP.NET AlternateText Property
Complete Image Control Reference
Definition and Usage
The AlternateText property is used to set or return the alternate text of an image.
This property specifies the text to display if the image is not available.
The alternate text displays as a ToolTip if your browser supports it
(Internet Explorer)
Syntax
<asp:Image AlternateText="text" runat="server" />
|
| Attribute |
Description |
| text |
Specifies an alternate text for the image |
Example
The following example sets the AlternateText for an Image control:
<form runat="server">
<asp:Image id="Img1" ImageUrl="img.gif"
runat="server" AlternateText="Image Text" />
</form>
|
Try-It-Yourself Demos
Set the alternate text for an image(image does not exist)
Complete Image Control Reference
Whether you're new to XML or already an advanced user, the user-friendly views
and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to
meet your XML and Web services development needs from start to finish.
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- Support for Office Open XML (OOXML)
- Graphical WSDL editor & SOAP debugger
- Java, C#, C++ code generation
- And much more!
Download a fully functional free 30-day trial today!
|