A) For each image, set the AlternateText property to specify the text you want to display, and set the ToolTip property to True. | B) For each image, set the ToolTip property to specify the text you want to display. |
C) In the onmouseover event handler for each image, add code that calls the RaiseBubbleEvent() method of the System.Web.UI.WebControls.Image class. | D) In the onmouseover event handler for each image, add code that calls the ToString() method of the System.Web.UI.WebControls.Image class. |
Explanation:
WebControl.ToolTip property gets or sets the text displayed when the mouse pointer hovers over the Web server control. The use of the ToolTip property meets the requirement of this scenario.
Incorrect Answers:
A: The AlternateText property is used to specify the text to display if the image is not available.
C: The RaiseBubbleEvent is not useful here. ASP.NET server controls such as the Repeater, DataList and DataGrid Web controls can contain child controls that raise events. Rather than each button raising an event individually, events from the nested controls are "bubbled"—that is, they are sent to the control's parent.
D: The ToStringMethod() would not by itself provide the functionality required.