How to provide the alternate text in a Image button or Image?

 Posted by Rajesh_Kumar on 2/17/2014 | Category: ASP.NET Interview questions | Views: 1819 | Points: 40

With the help of Image 'AlternateText property,we can provide the alternate text of the Image button or Image.

It displayed text in the Image control when the image is not available.Browsers that support the ToolTips feature display this text as a ToolTip.

For Example:
<asp:Image id="img_view" runat="server" AlternateText="View Selected Record" ImageAlign="left"


If view.jpg image is not present then View Selected Record will be displayed as ToolTip on Image.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response