三级嵌套数据

    <asp:DataList ID="DataList1" runat="server">
    <ItemTemplate>
     <div class="layA"><span class="layAfont"><%#Eval("C_name") %></span><span id="span<%#Eval("C_ID") %>" onclick="showDetail('span<%#Eval("C_ID") %>','div<%#Eval("C_ID") %>');" class="close">
        关闭</span><span style="margin-left:180px" onclick="javascript:{return confirm('确认次操作吗?');}"><a href="del.aspx?type=8&oneid=<%#Eval("C_ID") %>">删除</a>&nbsp;&nbsp;<a href="update.aspx?type=1&cid=<%#Eval("c_ID") %>&name=<%#Eval("c_name") %>" }">修改</a></span></div>
    <div id="div<%#Eval("C_ID") %>">
        <asp:Repeater ID="Repeater1" runat="server" DataSource='<%#Cblock.getBlockBList(int.Parse(Eval("C_ID").ToString())) %>'>
        <ItemTemplate>
            <div class="layBfont">├─<%#Eval("P_name") %><span class="del"><a href="del.aspx?type=4&pid=<%#Eval("P_ID") %>" onclick="javascript:{return confirm('删除操作会同时删除三级模块的所有内容,确认吗?');}">删除</a>&nbsp;&nbsp;<a href="update.aspx?type=2&pid=<%#Eval("P_ID") %>&name=<%#Eval("P_name") %>" onclick="javascript:{return confirm('确认修改吗?');}">修改</a></span></div>
            <asp:Repeater ID="Repeater2" runat="server" DataSource='<%#Cblock.getBlockC_list(int.Parse(Eval("P_ID").ToString())) %>'>
                <ItemTemplate>
                    <div class="layCfont">├─<%#Eval("Ci_name") %><span class="del"><a href="del.aspx?type=3&ciid=<%#Eval("Ci_ID") %>" onclick="javascript:{return confirm('删除操作不可恢复,确认吗?');}">删除</a>&nbsp;&nbsp;<a href="update.aspx?type=3&ciid=<%#Eval("Ci_ID") %>&name=<%#Eval("ci_name") %>" onclick="javascript:{return confirm('确认修改吗?');}">修改</a></span></div>
                </ItemTemplate>
            </asp:Repeater>
        </ItemTemplate>
        </asp:Repeater>
    </div>
    </ItemTemplate>
</asp:DataList>
posted @ 2008-11-05 19:05  余魁  阅读(197)  评论(0编辑  收藏  举报