Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have designed a treeview structure as below:
*parentID = 0 means tree root
HTML
ID    parentID
1        0
2        0
3        1
4        1
5        1
6        3
7        4
8        5
9        5
10       5
11       2
12       2
13       10

When i pass the parameter of "1" it will return the result of everything under Root "1":
HTML
ID    parentID
1        0
3        1
4        1
5        1
6        3
7        4
8        5
9        5
10       5
13       10

anyone have an idea how to build this query?
Posted
Comments
Akbar Ali Hussain 15-Aug-13 22:40pm    
Are you asking for a database query? or a LINQ query?
melvintcs 15-Aug-13 23:14pm    
sql database. im not sure if this is possible, i'm working on solving this problem with c# now.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900