TREENODETYPESRC Attribute | TreeNodeTypeSrc Property
Sets or retrieves the URL to an XML file containing TreeNodeType elements.
Syntax
ASP <tagPrefix:TREEVIEW TREENODETYPESRC = sTreeNodeTypeSrc ... > Script [ sTreeNodeTypeSrc = ] TREEVIEW.TreeNodeTypeSrc
Possible Values
tagPrefix Required. The element prefix associated with the WebControls namespace (Microsoft.Web.UI.WebControls). A TagPrefix is defined using the directive. sTreeNodeTypeSrc System.String that specifies or receives the URL to an XML file containing TreeNodeType elements. The property is read/write. The property has no default value.
Remarks
The value of this property must be a URL, for example, "https://www.mysite.com/xml_files/treenodetypes.xml", "file:///c:/xml_files/treenodetypes.xml", or "c:/xml_files/treenodetypes.xml".
You can encapsulate and reuse node types in an XML data island. The XML file must contain only TreeNodeType elements wrapped in opening and closing TREENODETYPES tags.
The content of the XML data island, referred to by the TreeNodeTypeSrc property, replaces all TreeNodeType elements that are children of the TreeView element.
The XML data island inherits the namespace of the databound element. The XML file must not contain any namespaces.
The XML data island must be syntactically well-formed XML.
Applies To
TREEVIEW
See Also
Internet Explorer WebControls, About the TreeView WebControl