ASP.NET Image Control
Definition and Usage
The Image control is used to display images.
Property
Property | Description | .NET |
---|---|---|
AlternateText | Alternative text for graphics. | 1.0 |
DescriptionUrl | The location to describe the image in detail. | 2.0 |
GenerateEmptyAlternateText | Specifies whether the control creates an empty string as alternative text. | 2.0 |
ImageAlign | Specifies the alignment of the image. | 1.0 |
ImageUrl | The URL of the image to be used. | 1.0 |
runat | Specifies that the control is a server control. It must be set to "server". | 1.0 |
Web Control Standard Attributes
AccessKey, Attributes, BackColor, BorderColor, BorderStyle, BorderWidth CssClass, Enabled, Font, EnableTheming, ForeColor, Height, IsEnabled SkinID, Style, TabIndex, ToolTip, Width
For a complete description, please visit Web Control Standard Attributes.
Control Standard Attributes
AppRelativeTemplateSourceDirectory, BindingContainer, ClientID, Controls EnableTheming, EnableViewState, ID, NamingContainer, Page, Parent, Site TemplateControl, TemplateSourceDirectory, UniqueID, Visible
For a complete description, please visitControl Standard Attributes.
Example
- Image
- In this example, we declared an Image control in the .aspx file.