我有2张表,一张是department,里面有departmentid,name,另外一张是category,里面有categoryid,name,departmentid我现在用Repeater该怎么样实现

department1
 category1
 category2
department2
 category3
 category4我现在用一个repeater取出来是
department1
category1
department1
category2
这种用嵌套repeater取出来就是每个department下面包含所有的category

解决方案 »

  1.   

    那就嵌套吧,没什么难的。
    msdn直接就有例子。
      

  2.   

    SELECT D.name,C.name FROM department D,category C
    WHERE C.departmentid = D.departmentid
    ORDER BY D.departmentid
      

  3.   

    select UserId as Id,Tb_Entry_Id,UserName as Names,'' as sex,UserPhone as Phone,Pic as pic 
    from Tb_User
    union
    select BossId as id ,Tb_Entry_Id,BossName as UserName ,BossSex as sex,'' as Phone,Pic as pic,
    BossPlan as BossPlan,B去看看别给我回复的帖子
    我的问题和你差不多一样  去看看我的帖子
    可以帮你的
      

  4.   

    其实就是2个for循环操作,先绑定外边的,在里边
      

  5.   

    建一个一般处理程序。。返回JSON数据。