System.Web.UI.WebControls.MenuItem.DataPath Property

Gets the path to the data that is bound to the menu item.

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DefaultValue("")]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public string DataPath { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The MenuItem.DataPath property value is commonly used when calling the System.Web.UI.IHierarchicalDataSource.GetHierarchicalView(string) method to provide the path to the data that is bound to the current menu item. This method then returns a System.Web.UI.HierarchicalDataSourceView object that contains the data at the specified path.

Requirements

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