I'm working on an ASP.NET (.NET 4, VS2010) app that needs folder
browsing/picking capabilities. I've got
it mostly working, but I'm stuck on one last thing. (see below)
Also, I'm using AJAX UpdatePanel, TreeView control, and AJAX Control
When I go to the page, I load the TreeView with a top node
and a first set of child nodes, which are the found drives of the server. Then I click a LinkButton to open the
ModalPopupExtender, which contains the TreeView. When I click the nodes of the TreeView, the
node expands and builds a set of child nodes which are the folders found.
What I want to happen is to allow the user to navigate
through the TreeView, selecting drives and folders until they find the one they're
looking for. Then they click OK to
return the path selected back to the main form.
The problem is that any click of any node in the TreeView
causes a postback and my ModalPopup closes.
Maybe what I'm doing is not possible, but does anyone have
any ideas on how to accomplish this task?
That is, how can I keep the ModalPopup open while the user clicks
through nodes of a TreeView in which the child nodes are populated dynamically?
(Sorry in advance for the really long post. There's a lot of code below.)
View Complete Post