Nested menu from database

G

Guest

Hi
I want to build up a navigation with elements from a Main Kategory table. This I managed to load ok in to the site useing a DataReader and
repeater control.

Now I have a second table with different products. One or more of this products is related to my Main Category table. This relationship is
defined in a third table that only contains the id from the other two tables.

Ok, this is how far I have come - and I managed to get this result:
Main Kategory 1
Main Kategory 2
Main Kategory 3

Next thing I want, is to list out the titles of the related products from my Product table under the Main Kategory that they belong. So
the result should be something like this:
Main Kategory 1
- Product Title A
- Product Title B
- Product Title C
Main Kategory 2
Main Kategory 3
- Product Title A

I wonder what would be the simplest/easiest way to nest this undertitles in my existing Repeater control. - I relly dont now the way futher...?

Anyone out there???
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,140
Latest member
SweetcalmCBDreview
Top