The Web server control allows you to display images on an ASP.NET Web page and manage these images in your own code.
To add an Image Web server control to a Web page
<asp:Image>element into the page. For syntax, see .
Set the control's property to the URL of a .gif, .jpg, or other Web graphic file.
The URL that is associated with a Image control points to an external resource. If you point to a resource that you do not own, be sure it is safe for your users to work with. For more information, Script Exploits Overview.
Optionally, set the following Image control properties.
Reserve space for the graphic on the page. When the page is rendered, the image will be sized to fit the space you reserve.
Aligns the image with respect to surrounding text, using values such as Top, Bottom, Left, Middle, and Right. In code, image alignment is set by using the ImageAlign enumeration.
Displays text in place of the graphic if the graphic can't be loaded. In some browsers, this text is also displayed as a ToolTip.