Category Hierarchy

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sehboo

    Category Hierarchy

    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

  • Raj Chudasama

    #2
    Re: Category Hierarchy

    ListView may be a good option

    try it

    r
    "Sehboo" <masoodadnan@ho tmail.com> wrote in message
    news:1123271532 .847234.312720@ g43g2000cwa.goo glegroups.com.. .[color=blue]
    > 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
    >[/color]


    Comment

    • Ignacio Machin \( .NET/ C# MVP \)

      #3
      Re: Category Hierarchy

      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,

      --
      Ignacio Machin,
      ignacio.machin AT dot.state.fl.us
      Florida Department Of Transportation






      "Sehboo" <masoodadnan@ho tmail.com> wrote in message
      news:1123271532 .847234.312720@ g43g2000cwa.goo glegroups.com.. .[color=blue]
      > 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
      >[/color]


      Comment

      Working...