how to reduce the time taken to populate tree node in asp.net c# treeview?
<p>I am binding the XML Data to treeview using XMLDataSource. Its working fime, but when the Number of nodes and childnodes increases, the treenode expand and to display the content in
iframe takes moer time.</p>

<pre><code>&lt;asp:TreeView ID="TreeView1"  OnSelectedNodeChanged = "OnClick" runat="server" 
                    ExpandDepth="0"  ShowExpandCollapse="true" ForeColor="Red" Font-Underline = "false" 
                    ondatabinding="TreeView1_DataBinding" CollapseImageUrl = "Resources/TocColapse.bmp" ExpandImageUrl = "Resources/TocParent.bmp" Font-Names="Arial"   &gt;
                    &lt;SelectedNodeStyle Font-Underline="false" BackColor="White" ForeColor="#0483e0" /&gt;
                    &lt;NodeStyle Font-Size="11pt" ForeColor="white" HorizontalPadding="5px"
                        NodeSpacing="0px" VerticalPadding="0px" Font-Underline = "false" /&gt;
                    &lt;ParentNodeStyle ForeColor="#0483e0" Font-Underline = "false" /&gt;
                    &lt;LeafNodeStyle ForeColor="#0483e0" Font-Underline = "false" ImageUrl = "Resources/TocChild.bmp"  /&gt;

                &lt;/asp:TreeView&gt;
                &lt;asp:XmlDataSource ID="XmlDataSource1" runat="server" XPath="/*/*" EnableCaching = "false" &gt;&lt;/asp:XmlDataSource&gt;
</code></pre>

<p>In OnDataBinding event of treeview I implemented the following code:</p>

<pre><code> TreeNodeBinding[] TreeNode = new TreeNodeBinding[Count];
        for (int i = 0; i &lt; Count; i++)
        {
            TreeNode[i] = new TreeNodeBinding();
            TreeNode[i].DataMember = TableOfContents[i].GetElementName();
            TreeNode[i].TextField = TableOfContents[i].GetFirstAttributeName();
            TreeNode[i].ValueField = TableOfContents[i].GetSecondAttributeName();
            // TreeNode[i].Target = "contentFrame";
            TreeView1.DataBindings.Add(TreeNode[i]);
        }
</code></pre>
