ASP.NET ImageControl
Web Server Control
Definition and Usage
The Image control is used to display images.
Attributes
| Attribute | Description | .NET |
|---|---|---|
| AlternateText | Alternate text for the image. | 1.0 |
| DescriptionUrl | A location where a detailed description of the image is provided. | 2.0 |
| GenerateEmptyAlternateText | Specifies whether the control creates an empty string as alternate text. | 2.0 |
| ImageAlign | Specifies how the image is aligned. | 1.0 |
| ImageUrl | The URL of the image displayed for this link | 1.0 |
| runat | Specifies that the control is a server control. 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 visitWeb 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 declare an Image control in a .aspx file.
Web Server Control Other Extensions