What should you do to configure the Image control to display a description of the image?

You are developing a product search page named Search.aspx for Web application that will be integrated into Domain.com’s existing e-Commerce Web site. The Search.aspx page allows customers search for products that match specific criteria. Once a product is located, you want an image of the product to be displayed. You want to use an Image control to display the image. You want to configure the Image control to display a description of the image if the image cannot be displayed in the customer’s Web browser.
What should you do?

You are developing a product search page named Search.aspx for Web application that will be integrated into Domain.com’s existing e-Commerce Web site. The Search.aspx page allows customers search for products that match specific criteria. Once a product is located, you want an image of the product to be displayed. You want to use an Image control to display the image. You want to configure the Image control to display a description of the image if the image cannot be displayed in the customer’s Web browser.
What should you do?

A.
Set the ToolTip property of the Image control.

B.
Set the ImageUrl property of the Image control.

C.
Set the AlternateText property of the Image control.

D.
Set the DescriptionUrl property of the Image control.

Explanation:
The text entered in the AlternateText property is displayed if the image cannot be displayed in the customer’s Web browser.

Incorrect Answers:
A: The text entered in the ToolTip property is displayed when the mouse hovers over the image. It is not displayed when the image cannot be displayed in the customer’s Web browser.
B: The text entered in the ImageUrl property specified the path to the Image. It does not display a description when the image cannot be displayed in the customer’s Web browser.
C: The text entered in the DescriptionUrl property is used when accessibility features are turned on. It does not display a description when the image cannot be displayed in the customer’s Web browser.



Leave a Reply 0

Your email address will not be published. Required fields are marked *