asp.net.ph

Skip Navigation Links

HtmlImage Server Control

HtmlGenericControl   HtmlInputButton


Provides programmatic access for the HTML <img> element on the server.

The HtmlImage control <img runat=server> enables dynamic manipulation of the HTML <img> element.

The control behaves in much the same way as the standard HTML version, except that it is fully programmable.

The following sample illustrates how an HtmlImage control can be easily set up to dynamically render different images, simply by changing the file associated with its Src property.

Changing a Displayed HTMLImage Dynamically
Run Sample | View Source
See Also

HtmlImage Control Syntax   Image Web Server Control   HTML IMG Element



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note