Category Hierarchy

  • Thread starter Thread starter Sehboo
  • Start date Start date
S

Sehboo

Hi,

I wonder how do websites show their categories. Instead of tree
stucture, they show something like this

..NET >> ASP.NET >> ASP.NET Controls >> Tree Control

Where eatch of these "nodes" are clickable.

I don't want to use tree control to show my categories, but do
something similar as other websites.

Wondering some body can tell me how can I get the parent/grand
parent/great grand parent/etc. info.

I have a table with ID, parent-id information.

Thanks
 
Hi,

How you want it to look like ?

If you do not want ot use a tree control, neither the list you used,
give an example of a website that looks like you want.

Also note that despise how you display it the table structure will be the
same, usually a node only knows it father ( or its children ) if you want
two generations you will have to do two queries.



cheers,
 
Back
Top