THY02K
August 9th, 2005, 11:57 PM
Hi, this is a question about Microsoft Web Control Library - Treeview control (http://msdn.microsoft.com/workshop/webcontrols/overview/treeview.asp#Prerequisites). I need to know if it's possible to bind an XMLDocument directly to Treeview control, as opposed to configuring "TreeNodeSrc" and point to an XML file on physical disk.
NOW:
tvReportsMenu.TreeNodeSrc = Request.PhysicalApplicationPath + "resources\data\report_collection.xml"
tvReportsMenu.TreeNodeXsltSrc = Request.PhysicalApplicationPath + "resources\data\report_template.xsl"
tvReportsMenu.TreeNodeTypeSrc = Request.PhysicalApplicationPath + "resources\data\tree_node_types.xml"
tvReportsMenu.DataBind()
DESIRED:
Dim doc As XmlDocument
... code to construct doc here ...
tvReportsMenu.DataSource = doc
tvReportsMenu.TreeNodeXsltSrc = Request.PhysicalApplicationPath + "resources\data\report_template.xsl"
tvReportsMenu.TreeNodeTypeSrc = Request.PhysicalApplicationPath + "resources\data\tree_node_types.xml"
tvReportsMenu.DataBind()
Any idea?
NOW:
tvReportsMenu.TreeNodeSrc = Request.PhysicalApplicationPath + "resources\data\report_collection.xml"
tvReportsMenu.TreeNodeXsltSrc = Request.PhysicalApplicationPath + "resources\data\report_template.xsl"
tvReportsMenu.TreeNodeTypeSrc = Request.PhysicalApplicationPath + "resources\data\tree_node_types.xml"
tvReportsMenu.DataBind()
DESIRED:
Dim doc As XmlDocument
... code to construct doc here ...
tvReportsMenu.DataSource = doc
tvReportsMenu.TreeNodeXsltSrc = Request.PhysicalApplicationPath + "resources\data\report_template.xsl"
tvReportsMenu.TreeNodeTypeSrc = Request.PhysicalApplicationPath + "resources\data\tree_node_types.xml"
tvReportsMenu.DataBind()
Any idea?