System.Web.UI.WebControls.TreeNodeBinding.Target Property

Gets or sets the target window or frame in which to display the Web page content that is associated with a node to which the System.Web.UI.WebControls.TreeNodeBinding object is applied.

Syntax

[System.ComponentModel.DefaultValue("")]
public string Target { 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.Target property to specify the value to bind to the TreeNode.Target 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.Target property is used to specify the window or frame in which to display the Web content that is linked to a node when that node is clicked.

Note:

Setting the TreeNodeBinding.Target property overrides the TreeView.Target property of the System.Web.UI.WebControls.TreeView control for the nodes to which the System.Web.UI.WebControls.TreeNodeBinding object is applied. You can selectively override the TreeNodeBinding.Target property by setting the TreeNode.Target property of each node directly.

Note:

The TreeNodeBinding.Target property renders as a target attribute. The target attribute on anchor elements is not allowed in the XHTML 1.1 document type definition. Do not set the TreeNodeBinding.Target property, if the rendered output for the System.Web.UI.WebControls.TreeNodeBinding control must be XHTML 1.1 compliant. For more information, see ASP.NET and XHTML Compliance.

When creating accessible Web pages, you should avoid using the TreeNodeBinding.Target property to target another window. For more information, see ASP.NET Accessibility.

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