HyperLink.ImageUrl Property
.NET Framework 3.0
Gets or sets the path to an image to display for the HyperLink control.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
[BindableAttribute(true)] public: virtual property String^ ImageUrl { String^ get (); void set (String^ value); }
/** @property */ public String get_ImageUrl () /** @property */ public void set_ImageUrl (String value)
public function get ImageUrl () : String public function set ImageUrl (value : String)
Not applicable.
Property Value
The path to the image to display for the HyperLink control. The default value is an empty string ("").The HyperLink control can be displayed as text or an image. Use the ImageUrl property to specify an image to display for the HyperLink control.
Note: |
|---|
| If both the Text and ImageUrl properties are set, the ImageUrl property takes precedence. If the image is unavailable, the text in the Text property is displayed. In browsers that support ToolTip functionality, the Text property also becomes the ToolTip. |
| Topic | Location |
|---|---|
| How to: Add HyperLink Web Server Controls to a Web Forms Page | Building ASP .NET Web Applications |
| How to: Add HyperLink Web Server Controls to a Web Forms Page | Building ASP .NET Web Applications |
| How to: Insert HTML Hyperlinks and Bookmarks in Design View | Building ASP .NET Web Applications in Visual Studio |
| How to: Add HyperLink Web Server Controls to a Web Forms Page (Visual Studio) | Building ASP .NET Web Applications in Visual Studio |
| How to: Insert HTML Hyperlinks and Bookmarks in Design View for Web Forms Pages |
Community Additions
ADD
Show:
Note: