The Image control displays a Web-compatible image.
Required properties are noted in boldface type.
<asp:Image id="Image1" runat="server" ImageUrl="string" AlternateText="string" ImageAlign="NotSet|AbsBottom|AbsMiddle|BaseLine|Bottom|Left|Middle| Right|TextTop|Top" />
Note Because the <asp:Image> element has no content, you can close it with />.
Property | Description |
---|---|
(Base control properties) | The properties defined in Base Web Control Properties. |
AlternateText | Text to display if the image referenced by ImageURL is not available. In some browsers, the alternate text is displayed as a ToolTip when the user holds the mouse pointer over the image. |
ImageAlign | The alignment of the image with surrounding text. The default is NotSet.
When programming, you set this property using the ImageAlign enumeration. |
ImageUrl | The URL of the image to display. |
To be supplied.
See Also