Export (0) Print
Expand All

Image.DescriptionUrl Property

Gets or sets the location to a detailed description for the image.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public virtual string DescriptionUrl { get; set; }
<asp:Image DescriptionUrl="String" />

Property Value

Type: System.String
The URL for the file that contains a detailed description for the image. The default is an empty string ("").

The DescriptionUrl property specifies an HTML file that provides additional details for the image. The DescriptionUrl property renders as the longdesc attribute for the image control. If the DescriptionUrl property is not set, or is set to an empty string (""), the Image control renders without the longdesc attribute.

Use the DescriptionUrl property to supplement the AlternateText property. For example, if you use an Image control to display an image of the solar system, you can set the AlternateText property to The Solar System, and then set the DescriptionUrl property to an HTML page that further describes the image of planets orbiting the sun in the solar system.

The DescriptionUrl property is optional, but it can enhance the accessibility of your Web page for text-only browsers and screen readers. Browsers can use the detailed text description to convey important concepts in place of, or in addition to, the visual image. Refer to your browser documentation for details on how it uses the descriptive content specified by the longdesc attribute.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft