ASP.NET ImageUrl Property

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

URL of the image to be used

Example

The following example sets the ImageUrl property on the HyperLink control:

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

Example

Set the ImageUrl Property for HyperLink Control