Move nodes to Recycle Bin

obout.com
ASP TreeView
Fast
Easy
Links & Notes since 1998
First child
This is nr1
This is nr2
This is nr3
Last one
Final one
Second child
Third child
Recycle Bin :)



Create a button that will move the nodes:
<input type="button" ID="Button1" value="Move to Recycle Bin"
                             onclick="ob_t2_Move('id_recycle', tree_selected_id)" />


Here, id_recycle is the id of the Recycle Bin node, and tree_selected_id
is the id of the selected node from the tree.

We used the ob_t2_Move function. This function takes 2 arguments:
  - the id of the destination node - first argument of the function
  - the id of the node to be moved - the second argument