System.Web.UI.WebControls.TreeNodeBinding.Text Property

Gets or sets the text that is displayed for the node to which the System.Web.UI.WebControls.TreeNodeBinding object is applied.

Syntax

[System.ComponentModel.DefaultValue("")]
[System.ComponentModel.Localizable(true)]
public string Text { 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.Text property to specify the value to bind to the TreeNode.Text 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. The TreeNode.Text property is used to specify the text displayed in a node.

Note:

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

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

The value of this property is stored in view state.

The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see System.ComponentModel.LocalizableAttribute and ASP.NET Globalization and Localization.

Requirements

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