I wrote a piece of code based on the "populate on demand" example taken from the quickstart package.
The datas come from SQL server (auto refer table with parentId and NodeId), and for each node I have a Title and a detail. When I click a node, I read those values from the database. Everything is working as expected.
Now... moving the mouse over any node of the treeview, I get a link like "__dopostback(blahblahblah...)" which of course make sense.
It does not make sense if I want to create a "browsable" link to that node. I mean.... how can I create a valid link to a node xyz and be able to server side browse the table structure in order to reach that node?
Treeview Example
Root
+ Folder1
- Leaf 1
- Leaf 2
- Leaf 3
If I right click "Leaf 2" and click the context menu item "Copy Link", I get a "no-sense" link to a user.
The user cannot use that link and send it to someone else, say by e-mail, cause that link is a postback instruction.
Should I use the sitemapdatasource thingie? I have no idea, went through it but had no clue of how to use it binding the control to a database (don't even know if I can do that)
I tried to build a link on my own which could make sense, using the valuepath. The findNode function does not work (I wonder if the problem is the load on demand) and now an idea comes up: is it some events that I should hook somewhere?
That's it, if anyone has a tip would be welcome.
Cheer