System.Web.UI.WebControls.TreeNode.NavigateUrl Property

Gets or sets the URL to navigate to when the node 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

The text of a node can be in one of two modes: selection mode or navigation mode. By default, a node is in selection mode. To put a node into navigation mode, set the node's TreeNode.NavigateUrl property to a value other than an empty string.

When a node is in navigation mode, all selection events are disabled for that node. Clicking the node in navigation mode links the user to the specified URL. You can optionally set the TreeNode.Target property to specify the window or frame in which to display the linked content.

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