Latest web development tutorials

ASP.NET Image ImageUrl property

Image Control Image Control

Definition and Usage

ImageUrl property sets or returns the URL of the image to be displayed.

grammar

<asp:Image ImageUrl="URL" runat="server" />
属性 描述
URL 要使用的图像的 URL。


Examples

The following examples set ImageUrl property to Image control:

<form runat="server">
<asp:Image id="Img1" runat="server" ImageUrl="img.gif" />
</form>

The demonstration >>

Image Control Image Control