System.Web.UI.WebControls.ButtonField.ImageUrl Property

Gets or sets the image to display for each button in the System.Web.UI.WebControls.ButtonField object.

Syntax

[System.Web.UI.UrlProperty]
[System.ComponentModel.DefaultValue("")]
[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")]
public virtual string ImageUrl { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When the ButtonFieldBase.ButtonType property of a System.Web.UI.WebControls.ButtonField object is set to the ButtonType.Image value, use the ButtonField.ImageUrl property to specify the image to display for each button. This image can be in any file format (.jpg, .gif, .bmp, and so on), as long as the client browser supports that format.

The value of this property is stored in view state.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0