I want my TreeView to remove a marked post when I've confirmed it from a button located in a modal popup.
1. TreeView is populated from DB.
2. Right click on some item.
3. Choose delete.
4. Modal popup appears asking if you're sure you want to delete the selected node.
5. If no, just close the popup. If yes, delete it from DB and refresh tree.
The problem is that it has to rerender the tree to show the changes. Is it possible to use the .Remove() function from a asp:button? If so, can I also use the add and rename functions?
Code for TreeView:
Code for button: