db2xml.xsl
: which is used to transform the XML file produced by
the ADO recoordset into the XML format required by the control andTreeview.xsl
: which is used to transform the control's xml into
the HTML format for output.Buffer
which is used to
concatenate strings rather than using the usuall & - sign.buffer.append(str1): buf.append(str2)
is way faster than str1
& str2
.LoadFromDb
& LoadFolderContents
procedures
have also been updated. A new public method LoadFromXml
has also
been added.
Where the<
items>
<item>
<menuid>1</menuid>
<text>Node 1</text>
<tooltip>This is node 1</tooltip>
<target></target>
<url>http//aspwebsolution.com</url>
<imageurl></imageurl>
<parentid>0</parentid>
</item>
</items>
ParentID
field is the first ancestor of the tree node. A
ParentID
of zero indicates a Root Node
in the treeview.
The URL
and ToolTip
fields can be left empty for
non-leaf nodes. You can then load your treeview by calling the LoadFromXml
method as follows:TreeView.LoadFromXml(XML File Path)
<%
%>