System.Web.UI.WebControls Namespace MenuItem Class
.NET Framework version 2.0
Returns the path to the data that is bound to the MenuItem control.
Script |
[ String variable = ] MenuItem.DataPath |
This property can only be used programmatically; it cannot be set when declaring the control.
variable |
A String that represents the path to the data that is bound to the node. This value comes from the hierarchical data source control to which the Menu control is bound. |
The property is read only with no default value.
Use the DataPath property to determine the path to the data that is bound to the current menu item.
The DataPath property value is commonly used when calling the GetHierarchicalView method, which returns a HierarchicalDataSourceView object that contains the data at the specified path.
MenuItem Members