Image::ImageUrl Property
Gets or sets the URL that provides the path to an image to display in the Image control.
Assembly: System.Web (in System.Web.dll)
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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.