Using the Image
Control
The page in Listing 2.26 randomly displays one of three images. The image is displayed by setting the ImageUrl
property of the Image
control contained in the body of the page.
Listing 2.26. ShowImage.aspx
The Image
control supports the following properties (this is not a complete list):
• AlternateText
—
Enables you to provide alternate text for the image (required for accessibility).
• DescriptionUrl
—
Enables you to provide a link to a page that contains a detailed description of the image (required to make a complex image ...
Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.