zoukankan      html  css  js  c++  java
  • [转]ASP.NET Repeater控件

     <asp:Repeater ID="RepeaterManage" runat="server" 
                       onitemcommand="RepeaterManage_ItemCommand" 
                                onitemdatabound="RepeaterManage_ItemDataBound" >
                <HeaderTemplate>
                <table class="tablered"width="100%" border="0" cellpadding="0" cellspacing="0">
                   <tr class="tableredtt">
                      <td align="center" >编号</td>
                      <td align="center">标题</td> 
                      <td align="center" >作者</td>
                      <td align="center">点击率</td> 
                      <td align="center">类型</td> 
                       <td align="center">功能</td>                 
                    </tr>
                </HeaderTemplate>
                <ItemTemplate>
                  <tr   onmouseover="trmouseover(this);" onmouseout="trmouseout(this);">
                     <td align="center">
                     <asp:Label ID="lbID" Visible="false" runat="server" Text=<%# Eval("ID").ToString()%> ></asp:Label>
                     <%# (this.RepeaterManage.Items.Count+1).ToString()%>
                     </td>
                    <td align="center"><%#Eval("Title").ToString()%></td>
                    <td align="center"><%#Eval("Auther").ToString()%></td>
                    <td align="center"><%#Eval("LinkCount").ToString()%></td>
                     <td align="center"><%#Eval("TypeTitle").ToString()%></td>
                    <td align="center">
                    <asp:LinkButton ID="btAmend" CommandName="btAmend"  runat="server">修改/</asp:LinkButton>
                    <asp:LinkButton ID="btKeyWords" CommandName="btKeyWords"  runat="server">关键词/</asp:LinkButton>
                    <asp:LinkButton ID="btDelete" CommandName="btDelete" runat="server">删除</asp:LinkButton>
                    </td>
                  </tr>
                </ItemTemplate>
                <AlternatingItemTemplate>
                   <tr   onmouseover="trmouseover(this);" onmouseout="trmouseout(this);">
                   <td align="center">
                              <asp:Label ID="lbID" Visible="false" runat="server" Text=<%# Eval("ID").ToString()%> ></asp:Label>
                     <%# (this.RepeaterManage.Items.Count+1).ToString()%>
                     </td>
                    <td align="center"><%#Eval("Title").ToString()%></td>
                    <td align="center"><%#Eval("Auther").ToString()%></td>
                    <td align="center"><%#Eval("LinkCount").ToString()%></td>
                     <td align="center"><%#Eval("TypeTitle").ToString()%></td>
                    <td align="center">
                    <asp:LinkButton ID="btAmend" CommandName="btAmend"  runat="server">修改/</asp:LinkButton>
                    <asp:LinkButton ID="btKeyWords" CommandName="btKeyWords"  runat="server">关键词/</asp:LinkButton>
                    <asp:LinkButton ID="btDelete" CommandName="btDelete" runat="server">删除</asp:LinkButton>
                    </td>
                  </tr>
                </AlternatingItemTemplate>
                <FooterTemplate>
                
                </table>
                </FooterTemplate>
                </asp:Repeater>
  • 相关阅读:
    html5 标签
    开发中常见问题
    This Android SDK requires Andriod Developer Toolkit version 23.0.0 or above
    onActivityResult 要加判断
    expandlistview child 不可点击
    自定义dialog布局
    mediaPlayer 播放
    转载 收藏 listview判断是否在底部
    mediaPlayer
    org.apache.http.legacy.jar 兼容
  • 原文地址:https://www.cnblogs.com/liuxinls/p/2879154.html
Copyright © 2011-2022 走看看