I'm trying to build a heirarchical list of web sites in our environment. We have about 1500 sites and I am able to traverse the tree and list the sites, but because of the amount, the page takes 12+ seconds to load.
I would like to rebuild this to only bring back one level at a time. Each time I click the [+] sign I'd like to generate a tree branch 1 level deep just for that URL.
[+] Site 1
[+] Site 2
[-] Site 3
[+] Sub site 1
[-] Sub site 2
[+] Sub Sub site 1
[+] Site N
I have all the code I need to generate each piece. I can get a single level list of sites based on a URL.
My problem is displaying this and getting to to work right. When the [+] is clicked the GetSubsites(URL) will fire. But if "Site 1" is clicked, I want the user to be sent to Site 1.
I need help on the [+] generation/clicking and the displaying of the list as a sub list of the one I clicked.