HTML Image Control
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

HTML Image Control

One control based on the HTML IMG element is available on the HTML tab of the Toolbox as the Image control.

For a complete list of elements, see HTML Elements.

HTML controls added to an HTML page in Visual Studio are simply HTML elements with certain attributes already set.

Security Note   The URL associated with an HTML Image control can be tampered with by a malicious user. For more information, see Scripting Exploits.

The same is true for HTML controls added to a Web Forms (.aspx) page. By default, HTML elements on a Web Forms page are not available to the server; they are treated as opaque text that is passed through to the browser. However, by converting HTML elements to HTML server controls, you expose them as elements you can program in server-based code. For an overview of how HTML elements can be exposed to the server so that you can program them, see Introduction to ASP.NET Server Controls. For a list of these controls see HTML Server Controls.

See Also

Adding HTML Server Controls to a Web Forms Page | HTML Designer | Navigating in the Document Outline Window | HTML Elements

Show:
© 2016 Microsoft