asp.net.ph

MenuItem.DataPath Property

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.

Syntax


Script [ String variable = ] MenuItem.DataPath

This property can only be used programmatically; it cannot be set when declaring the control.

Property Value


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.

Remarks

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.

See Also

MenuItem Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph