Hi,
As per my understanding you are trying to add the node to your treeview. But that is the code is where the error is caused.If you see the error ,
The name 'node' does not exist in the current context
There is no variable with name as 'node'.Also, it doesnt specify where are you adding the new node.I guess that newnode should be added to the node passed as parameter.
Try
treeNode.ChildNodes.Add(newnode);
Please see the below link on adding nodes to your treeview.
http://stackoverflow.com/questions/881607/adding-child-nodes-in-treeview[
^]
http://msdn.microsoft.com/en-us/library/aa984278(v=vs.71).aspx[
^]
Hope this helps.