views:

91

answers:

0

I have a following scenario: an asp.net TreeView control, where the user can add/delete nodes. To add a node they would click on the desired node in the tree, a pop-up window will be presented, where the user will enter info, this pop-up will need to save some data in the database (but not the tree data, just node data - nodes can exist in database independently for other purposes). Upon saving and closing, a pop-up will return the nodes's unique id (from the database). Then what I need to do is add this node to the tree and make the tree update. please note that at this point, there is nothing in the database tying the node to the tree, so essentially I need to add the node to the tree in my server page (I will store tree data inside the session until the entire tree is saved to the database).

My question is the following: what would be the steps to make this work? (please try to avoid Jquery as I would rather use regular pop-ups) i am a bit confused as some people suggested I put the treeview inside the UpdatePanel, but TreeView already implements build-in callback mechanism......could someone explain clearly how to achieve the above with asp.net/html/javascript

I am using ASP.net 3.5 web forms NOT MVC.