@PatrickOIge: "I have this code below.
All its suppose to do is to EXPAND / COLLAPSE ALL of my treeview.
But when i use ASP.NET WEbmatrix it all works fine ..
But with VS.NET is says TreeNodeCollection not defined
and TreeNode not defined!!!!!!!!!!!!!!arg!!!!
How am i suppose to define it in VS.NET..
OR Does anybody another way of doing it!!
Any help appreciated!
Private Sub expandAll(ByVal sender As Object, ByVal e As EventArgs)
        'Call the recursive function with the rootnode collection and a 
boolean value indication to expand the nodes.
        expandCollapseAllTreeviewNodes(Me.tvFamilyTree.Nodes, True)
    End Sub
    Private Sub collapseAll(ByVal sender As Object, ByVal e As EventArgs)
        'Call the recursive function with the rootnode collection and a 
boolean value indication to collapse the nodes.
        expandCollapseAllTreeviewNodes(Me.tvFamilyTree.Nodes, False)
    End Sub
    'Recursive function.
    Private Sub expandCollapseAllTreeviewNodes(ByVal nodes As 
TreeNodeCollection, ByVal expand As Boolean)
        Dim node As TreeNode
        'Loop through each node of the collection and expand it.
        For Each node In nodes
            node.Expanded = expand
            'Call the recursive function from itself, just the subnode 
collection (this will ensure all nodes either are collapsed or expanded).
            expandCollapseAllTreeviewNodes(node.Nodes, expand)
        Next
    End Sub
ASP.NET
-
<asp:Button id="Button1" onclick="expandAll" runat=server 
Text="Expand"></asp:Button> 
                <asp:Button id="Button2" onclick="collapseAll"  
Text="Collapse"></asp:Button>"
    @PatrickOIge: "thx Mohammed.
My treeView is populsted using XML
And my code works well in ASP.NET WEMATRIX
Only when i use Visual Studio it says :- TreeNodeCollection and TreeNode 
are not defined.
How should i define that..
Can you just post your full code i guess it will help me!
Thanks!!
<quote>"
{'source': 'USENET', 'other_information': '{"reply_count": 1, "forum_name": "microsoft.public.dotnet.framework.aspnet.webcontrols.20140708.mbox"}', 'file': 'data/output/usenet-microsoft.public.parquet'}