动态二级菜单实现问题
我有2张表,一张是department,里面有departmentid,name,另外一张是category,里面有categoryid,name,departmentid
我现在用Repeater该怎么样实现
如
department1
category1
category2
department2
category3
category4
我现在用一个repeater取出来是
department1
category1
department1
category2
这种
用嵌套repeater取出来就是每个department下面包含所有的category