zoukankan      html  css  js  c++  java
  • Repeater 绑定

    前台容器Repeater的关键代码:

     <!--列表展示.开始-->
        <asp:Repeater ID="rptList" runat="server" onitemcommand="rptList_ItemCommand" OnItemDataBound="rptList_ItemDataBound">
        <HeaderTemplate>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
          <tr>
              <th width="6%"  align="left">第一列</th>
              <th width="15%" align="left">第二列</th>

          </tr>
        </HeaderTemplate>
        <ItemTemplate>
          <tr>
                <td><%#Eval("第一列ID")%></td>
                <td><%#Eval("第二列ID")%></td>
            
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"7\">暂无记录</td></tr>" : ""%>
          </table>
        </FooterTemplate>
        </asp:Repeater>

    后台代码:

     DataSet _invWasteDs = 获得的数据;
                this.rptList.DataSource = _invWasteDs;
                this.rptList.DataBind();

  • 相关阅读:
    凝聚层次聚类
    Kmeans
    贝叶斯数据集
    将项目上传至码云(命令)
    协同过滤算法
    在阿里云Centos7.6上部署Supervisor来监控和操作各类服务
    Django笔记
    高并发
    FastDFS
    关于数据结构
  • 原文地址:https://www.cnblogs.com/northeastTycoon/p/2756722.html
Copyright © 2011-2022 走看看