System.Web.UI.WebControls.MenuItemBinding.ToolTip Property

Gets or sets the ToolTip text for a menu item to which the System.Web.UI.WebControls.MenuItemBinding object is applied.

Syntax

[System.ComponentModel.Localizable(true)]
[System.ComponentModel.DefaultValue("")]
public string ToolTip { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When the System.Web.UI.WebControls.Menu control is bound to a data source, use the MenuItemBinding.ToolTip property to specify the text to bind to the MenuItem.ToolTip property of a System.Web.UI.WebControls.MenuItem object. This ToolTip is shared with all menu items to which the System.Web.UI.WebControls.MenuItemBinding object is applied. When the user positions the mouse pointer over a menu item, the specified text is displayed.

Note:

You can override the ToolTip for an individual menu item by setting its MenuItem.ToolTip property directly.

Instead of using this property to specify the same ToolTip for each menu item, you can also bind the MenuItem.ToolTip property of a System.Web.UI.WebControls.MenuItem object to a field of a data source by setting the MenuItemBinding.ToolTipField property. When rendered, the MenuItem.ToolTip property of each menu item to which the System.Web.UI.WebControls.MenuItemBinding object is applied contains the corresponding value from the field.

Note:

If the MenuItemBinding.ToolTip and MenuItemBinding.ToolTipField properties are both set, the MenuItemBinding.ToolTipField property takes precedence.

The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see System.ComponentModel.LocalizableAttribute and ASP.NET Globalization and Localization.

Requirements

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