Image.ImageUrl Property
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)
Property Value
The location of an image to display in the Image control.Use the ImageUrl property to specify the URL of an image to display in the Image control. You can use a relative or an absolute URL. A relative URL relates the location of the image to the location of the Web page without specifying a complete path on the server. The path is relative to the location of the Web page. This makes it easier to move the entire site to another directory on the server without updating the code. An absolute URL provides the complete path, so moving the site to another directory requires that you update the code.
| Topic | Location |
|---|---|
| How to: Add Image Web Server Controls to a Web Forms Page | Building ASP .NET Web Applications |
| How to: Add ImageButton Web Server Controls to a Web Forms Page | Building ASP .NET Web Applications |
| How to: Add ImageMap Web Server Controls to a Web Forms Page | Building ASP .NET Web Applications |
| How to: Add Image Web Server Controls to a Web Forms Page | Building ASP .NET Web Applications |
| How to: Add ImageButton Web Server Controls to a Web Forms Page | Building ASP .NET Web Applications |
| How to: Add ImageMap Web Server Controls to a Web Forms Page | Building ASP .NET Web Applications |
| How to: Add ImageMap Web Server Controls to a Web Page (Visual Studio) | Building ASP .NET Web Applications in Visual Studio |
| How to: Add ImageButton Web Server Controls to a Web Forms Page (Visual Studio) | Building ASP .NET Web Applications in Visual Studio |
| How to: Add Image Web Server Controls to a Web Forms Page (Visual Studio) | Building ASP .NET Web Applications in Visual Studio |
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Reference
Image ClassImage Members
System.Web.UI.WebControls Namespace