ASP.NET HyperLink ImageUrlProperty
HyperLink Control
Definition and Usage
The ImageUrl property is used to set or return the URL of the image displayed as a hyperlink.
Syntax
<asp:HyperLink ImageUrl="URL" runat="server" />
| Property | Description |
|---|---|
| URL | The URL of the image to use. |
Example
The following example sets the ImageUrl property on the HyperLink control:
<form runat="server">
<asp:HyperLink id="link1" runat="server"
NavigateUrl="http://www.w3cschool.cc" ImageUrl="img.gif" />
</form>
<asp:HyperLink id="link1" runat="server"
NavigateUrl="http://www.w3cschool.cc" ImageUrl="img.gif" />
</form>
Show Example »
HyperLink Control Other Extensions