I have a database with a table called “categories”. The table has 3 columns:
1. ID
2. Name
3. ParentID.
id | Name |ParentID
_____________________
1 | John | 0
2 | Charlie | 1
3 | Vasily | 1
4 | David | 2
5 | Edward | 3
So John is the parent for Charlie and Vasily, David is the child of Charlie and Edward is the child of Vasily.
The question is:
How can i create and populate some panels for each category, considering that the child panels must be inside their parent panels? The question is allmost the same as this one here however i realy realy need it to be with panels instead of treeview.
Thank You.
you should change the code as it is