System.Web.UI.WebControls.TreeNode.Target Property

Gets or sets the target window or frame in which to display the Web page content associated with a node.

Syntax

[System.ComponentModel.DefaultValue("")]
public string Target { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the TreeNode.Target property to specify the window or frame in which to display the Web content linked to a node when that node is clicked.

Note:

Setting this property overrides the TreeView.Target property of the System.Web.UI.WebControls.TreeView control.

Note:

The TreeNode.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 TreeNode.Target property if the rendered output for the System.Web.UI.WebControls.TreeNode object must be XHTML 1.1-compliant. For more information, see ASP.NET and XHTML Compliance.

When creating accessible Web pages, it is strongly recommended you avoid using the TreeNode.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