ASP.NET Image ImageUrl property
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>
<asp:Image id="Img1" runat="server" ImageUrl="img.gif" />
</form>
The demonstration >>
Image Control