Please visit our sponsors !
Image Control
Definition and Usage
The Image control is used to display an image.
Properties
Property |
Description |
AlternateText |
An alternate text for the image |
Enabled |
Specifies whether this control is enabled |
Font |
Specifies the font for the alternate text |
id |
A unique id for the control |
ImageAlign |
Specifies the alignment of the image. Legal values are:
- NotSet
- AbsBottom
- AbsMiddle
- BaseLine
- Bottom
- Left
- Middle
- Right
- TextTop
- Top
|
ImageUrl |
The URL of the image to display for the link |
runat |
Specifies that the control is a server control. Must
be set to "server" |
Example 1
In the following example we declare an Image
control in an .aspx file:
<html>
<body>
<form runat="server">
<asp:Image id="image1" runat="server"
AlternateText="W3Schools"
ImageUrl="../banners/w6.gif"/>
</form>
</body>
</html>
|
Jump to: Top of Page
or HOME or
Printer friendly page
Search W3Schools:
What Others Say About Us
Does the world know about us? Check out these places:
Dogpile
Alta Vista
MSN
Google
Excite
Lycos
Yahoo
Ask Jeeves
We Help You For Free. You Can Help Us!
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2002 by Refsnes Data. All Rights Reserved
|