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.
HtmlImage Control Syntax Image Web Server Control HTML IMG Element