System.Web.UI.WebControls.TreeView.SelectedValue Property

Gets the value of the selected node.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.DefaultValue("")]
[System.ComponentModel.Browsable(false)]
public string SelectedValue { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The TreeView.SelectedValue property provides a convenient way to determine the value of the selected node. This property simply returns the value of the TreeNode.Value property of the System.Web.UI.WebControls.TreeNode object that is referred to by the TreeView.SelectedNode property. If no node is currently selected in the System.Web.UI.WebControls.TreeView control, an empty string ("") is returned.

Requirements

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