1
Answer

treeview , click event, c#,asp.net,sql server. Pls help me o

Christ X

Christ X

11y
2.2k
1

treeview , click event, c#,asp.net,sql server. Pls help me out.


Hi, 

I am having 50 treenode on the screen which is treeview format. for example:

+ ATM bat

   - ATM bat child1

   - ATM bat child2

.

.

.

+BCC bat

like that it goes. right now. i got the treeview correctly. when i click + symbol , it expand it's child what i mentioned above.

Note: those above records i am retrieving from sql server.

every node is having it's unique id. i am retrieving from sql server using parent id and child id only.

forexample, ATM bat is having id called 0 which is parent. and it's child id is 1 which is  ATMbatchild1. and when the first child id is 1 which acts as parent now , it's child id is 2 which is ATM bat child2. it goes like that. when i click +  , it expands it's child.

Till now everything works fine. but , what i need is that. i am having images for all. so, if i click ATM bat node, it should show it's child's(ATMbatchild1, ATM bat child2....) image on the righthand side where i have one div and at the same time, it should expand it's child also.

please help me..thanks 

Answers (1)