L
lourivas
Hi,
i'm using Treeview IE webcontrol and trying to add nodes dynamically
when a user clicks on a button. The problem occurs when a user clicks
on a second time on that button to add a second child node. It´s
overrding the fist one.
Below is a code that run each time a user clicks on that button. What
is wrong?
Private Sub ImageButton1_Click(.......
Dim vNode0 As New Microsoft.Web.UI.WebControls.TreeNode
Dim vNodeAtual As Microsoft.Web.UI.WebControls.TreeNode _
= TreeView1.Nodes(0).Nodes(0)
vNode0.Text = DropDownList1.SelectedValue
vNodeAtual.Expanded = True
vNodeAtual.Nodes.Add(vNode0)
end sub
Tks,
Lourival
i'm using Treeview IE webcontrol and trying to add nodes dynamically
when a user clicks on a button. The problem occurs when a user clicks
on a second time on that button to add a second child node. It´s
overrding the fist one.
Below is a code that run each time a user clicks on that button. What
is wrong?
Private Sub ImageButton1_Click(.......
Dim vNode0 As New Microsoft.Web.UI.WebControls.TreeNode
Dim vNodeAtual As Microsoft.Web.UI.WebControls.TreeNode _
= TreeView1.Nodes(0).Nodes(0)
vNode0.Text = DropDownList1.SelectedValue
vNodeAtual.Expanded = True
vNodeAtual.Nodes.Add(vNode0)
end sub
Tks,
Lourival