HtmlImage Object— <img> Element

This displays an image. Table D.24 lists the properties of the HtmlImage object.

Table D.24. Properties of the HtmlImage Object
Property Description
ID Gets or sets the ID (identifier) of the HtmlImage control.
ALT Gets or sets the caption of the Image control.
SRC Source file of the image (URI/URL).
Height Height of the image to be displayed.
Width Width of the image to be displayed.
Align Gets or sets the alignment of the image with surrounding text.
Border Width of the image border, which defaults to 0.
Disabled Gets or sets a value that indicates whether the Disabled attribute is included when an HTML control is rendered on the browser. Including this attribute makes the control read-only.
Visible Gets or ...

Get Inside ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.