System.Web.UI.WebControls.TreeView.FindNode Method

Retrieves the System.Web.UI.WebControls.TreeNode object in the System.Web.UI.WebControls.TreeView control at the specified value path.

Syntax

public TreeNode FindNode (string valuePath)

Parameters

valuePath
The value path of a node.

Returns

The System.Web.UI.WebControls.TreeNode at the specified value path.

Remarks

Use the TreeView.FindNode(string) method to get a node from the System.Web.UI.WebControls.TreeView control at the specified value path. The value path contains a delimiter-separated list of node values that form a path from the root node to the current node. Each node stores its value path in the TreeNode.ValuePath property. The TreeView.PathSeparator property specifies the delimiter character that is used to separate the node values.

Requirements

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