Image control

Image control

Previous Home Next

 

The Image Web server control is used to display an image on a Web page. To set the image to be displayed for this control we use the ImageUrl property. The class hierarchy for this control is as follows:

Object
 Control
  WebControl
   Image 

Properties::
1.AlternateText::An alternate text for the image.
2.DescriptionUrl::The location to a detailed description for the image.
3.GenerateEmptyAlternateText::Specifies whether or not the control creates an empty string as an alternate text.
4.ImageAlign::Specifies the alignment of the image.
5.ImageUrl::The URL of the image to display for the link.

 
   

 

 Image Control
**********************************************************************
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Image.aspx.cs" Inherits="_Default" %>





    Image Control


    
Previous Home Next