Latest web development tutorials

ASP.NET HyperLink ImageUrl property

HyperLink controls HyperLink controls

Definition and Usage

ImageUrl property sets or returns to display an image as a hyperlink URL.

grammar

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


Examples

The following examples are provided in the HyperLink control ImageUrl properties:

<form runat="server">
<asp:HyperLink id="link1" runat="server"
NavigateUrl="http://www.w3cschool.cc" ImageUrl="img.gif" />
</form>

The demonstration >>

HyperLink controls HyperLink controls