MenuItemBinding.SeparatorImageUrl Property

Gets or sets the URL to an image displayed below the text of a menu item (to separate it from other menu items) for a menu item to which the MenuItemBinding object is applied.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public:
property String^ SeparatorImageUrl {
	String^ get ();
	void set (String^ value);
}
/** @property */
public String get_SeparatorImageUrl ()

/** @property */
public void set_SeparatorImageUrl (String value)

public function get SeparatorImageUrl () : String

public function set SeparatorImageUrl (value : String)

Not applicable.

Property Value

The URL to an image displayed below the text of a menu item for a menu item to which the MenuItemBinding is applied.

When the Menu control is bound to a data source, use the SeparatorImageUrl property to specify the URL of a MenuItem.SeparatorImageUrl property of a MenuItem object. This URL is shared with all menu items to which the MenuItemBinding object is applied.

NoteNote:

You can override the URL for an individual menu item by setting its SeparatorImageUrl property directly.

Instead of using this property to indicate the same URL in each menu item, you can also bind the SeparatorImageUrl property of a MenuItem object to a field of a data source by setting the SeparatorImageUrlField property. When rendered, the SeparatorImageUrl property of each menu item to which the MenuItemBinding object is applied contains the corresponding value from the field.

NoteNote:

If the SeparatorImageUrl and SeparatorImageUrlField properties are both set, the SeparatorImageUrlField property takes precedence.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: