问题描述
我有一个中继器,它显示类别列表(我在数据库中有),我在该中继器中还有另一个中继器,该中继器显示了与我的数据库中的类别相关的项目,类别中继器可以正常工作,但是这就是我想做:
category1 => item1_category1,item2_category1,item3_category1,....
category2 => item1_category2,item2_category2,item3_category2,....
........
如我所说,类别列表没有问题,但我不知道该为项目列表做什么.
在正常情况下,如果我想使用sql命令,则应使用从db where category = @ category中选择项目",但在这种情况下,@ category通过Repeater(category Repeater)进行更改
任何的想法 ?!!!!!!!
预先感谢
i have a repeater which shows the list of categories ( which i have in database ) , i have another repeater inside this repeater which shows the items related to the category from my db, the category repeater works fine , but this is what i want to do :
category1=>item1_category1, item2_category1, item3_category1 , ....
category2=>item1_category2, item2_category2, item3_category2, ....
........
as i said , there is no problem in category list, but i dont know what should i do for the items list.
in a normal situation if i want to use a sql command i should use " select item from db where category=@category" but in this situation @category changes through the repeater( category repeater)
any idea ?!!!!!!!
thanks in advance
推荐答案
这篇关于在另一个中继器标签中使用中继器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!