System.Web.UI.WebControls.TreeNodeBinding.NavigateUrl Property

Gets or sets the URL to link to when a node to which the System.Web.UI.WebControls.TreeNodeBinding object is applied is clicked.

Syntax

[System.ComponentModel.Editor("System.Web.UI.Design.UrlEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))]
[System.Web.UI.UrlProperty]
[System.ComponentModel.DefaultValue("")]
public string NavigateUrl { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When the System.Web.UI.WebControls.TreeView control is bound to a data source, use the TreeNodeBinding.NavigateUrl property to specify the URL to bind to the TreeNode.NavigateUrl property of a System.Web.UI.WebControls.TreeNode object. This binding relationship affects all System.Web.UI.WebControls.TreeNode objects to which the System.Web.UI.WebControls.TreeNodeBinding object is applied. When this property is set, the System.Web.UI.WebControls.TreeView control displays a hyperlink for the text of the node, instead of plain text. You can also optionally set the TreeNodeBinding.Target property to specify the window or frame in which to display the linked content.

Note:

You can selectively override the TreeNodeBinding.NavigateUrl property by setting the TreeNode.NavigateUrl property of each node directly.

Instead of using the TreeNodeBinding.NavigateUrl property to bind the same URL to each node, you can bind the TreeNode.NavigateUrl property of a System.Web.UI.WebControls.TreeNode object to a field of a data source by setting the TreeNodeBinding.NavigateUrlField property.

The value of this property is stored in view state.

Requirements

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