System.Web.UI.WebControls.MenuItem.ImageUrl Property

Gets or sets the URL to an image that is displayed next to the text in a menu item.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

Use the MenuItem.ImageUrl property to specify a custom image for the current menu item in the System.Web.UI.WebControls.Menu control. This image is displayed next to the menu item text and can be in any file format (.jpg, .gif, .bmp, and so on), as long as the client's browser supports that format.

Requirements

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