System.Web.UI.WebControls.Image.ImageUrl Property

Gets or sets the URL that provides the path to an image to display in the System.Web.UI.WebControls.Image control.

Syntax

[System.Web.UI.UrlProperty]
[System.ComponentModel.Editor("System.Web.UI.Design.ImageUrlEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[System.ComponentModel.DefaultValue("")]
[System.ComponentModel.Bindable(true)]
public virtual string ImageUrl { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the Image.ImageUrl property to specify the URL of an image to display in the System.Web.UI.WebControls.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.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0