Click here to Skip to main content
15,909,656 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all

I have tow tables in database ( categories , products )

categoris are : drinks,foods
products are : milk, water, cocacola, potato, tomato

How can me use tow repeater inside each other to display data like this :

drinks:
milk, water, cocacola ....

foods:
potato, tomato ....
Posted
Comments
joshrduncan2012 18-Mar-13 12:06pm    
Can you rephrase your question? That is very unclear.
ZurdoDev 18-Mar-13 13:18pm    
Just put one repeater inside the other. What exactly are you struggling with?
Hetal Jariwala 19-Mar-13 2:58am    
you can use first repeater rowdatabound event to bind nested repeater

1 solution

 
Share this answer
 
Comments
ocean99 19-Mar-13 2:24am    
I try to say:
outside repeater depends on sqldatasource1 and its sqlSelect is :
select category from categoryTable;

inside repeater depends on sqldatasource2 and its sqlSelect must depends on category value like this :
select * from productsTable WHERE category=category ( the value from outside repeater)

I try and try .. but not success , can you help me please
thanks

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