The HtmlImage control allows developers to program against the HTML <img>
element. This control allows developers to dynamically set and retrieve image attributes, including the src
, width
, height
, border
, alt
, and align
attributes.
Note This control does not require a closing tag.
ASP+ Syntax
Required properties are noted in boldface type.
<img id="programmaticID" runat=server alt="alttext" align= top | middle | bottom | left | right border="borderwidth" height="imageheight" src="imageURI" width="imagewidth" >
Tasks
Aligning an Image with Surrounding Text
See Also