asp.net.ph

Skip Navigation LinksHome > ASP.NET Web Forms > Web Forms Server Controls > Controls You Can Use on Web Forms > ASP.NET HTML WebControls

ASP.NET HTML Controls

  Section Index


HtmlImage Server Control

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

More ...
Back to top


© 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