Easy Tutorial
❮ Prop Webcontrol Table Cellspacing Prop Webcontrol Calendar Selectmonthtext ❯

ASP.NET HtmlImage Control



Definition and Usage

The HtmlImage control is used to control the <img> element. In HTML, the <img> element is used to display images.


Properties

Property Description
Align How the image is aligned relative to surrounding elements. Legal values include: top<br> middle<br> bottom<br> left<br> right
Alt A short description of the image.
Attributes Returns all attribute name and value pairs of the element.
Border The width of the border around the image.
Disabled A Boolean value indicating whether the control is disabled. Default is false.
Height The height of the image.
id The unique ID of the control.
runat Specifies that the control is a server control. Must be set to "server".
Src The URL of the image to be displayed.
Style Sets or returns the CSS properties applied to the control.
TagName Returns the tag name of the element.
Visible A Boolean value indicating whether the control is visible.
Width The width of the image.

Examples

HTMLImage

HTMLImage 2


❮ Prop Webcontrol Table Cellspacing Prop Webcontrol Calendar Selectmonthtext ❯