zoukankan      html  css  js  c++  java
  • ASPNET控件之Repeater

      <asp:Repeater ID="Repeater1" runat="server">
                <HeaderTemplate>
                    <table class="table_table" width="100%" cellpadding="4" cellspacing="1">                  
                        <tr style="background-color: #CCCCFF">
                            <th style=" 15%">
                                名称
                            </th>
                            <th style=" 15%">
                                买入价
                            </th>
                            <th>
                                卖出价
                            </th>
                            <th>
                                时间
                            </th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate >
                    <tr style="background-color: #FAF3DC">
                        <td>
                            <%# DataBinder.Eval( Container.DataItem, "NAME") %>
                        </td>
                        <td>
                            <%# DataBinder.Eval( Container.DataItem, "PRICE_IN") %>
                        </td>
                        <td>
                            <%# DataBinder.Eval( Container.DataItem, "PRICE_OUT") %>
                        </td>
                        <td>
                            <%# DataBinder.Eval( Container.DataItem, "PE_DATE") %>
                        </td>
                    </tr>
                </ItemTemplate>
                
                <AlternatingItemTemplate>
                   <tr style="background-color:#eaeaea">
                        <td>
                            <%# DataBinder.Eval( Container.DataItem, "NAME") %>
                        </td>
                        <td>
                            <%# DataBinder.Eval( Container.DataItem, "PRICE_IN") %>
                        </td>
                        <td>
                            <%# DataBinder.Eval( Container.DataItem, "PRICE_OUT") %>
                        </td>
                        <td>
                            <%# DataBinder.Eval( Container.DataItem, "PE_DATE") %>
                        </td>
                    </tr>
                </AlternatingItemTemplate>
             <%--   <SeparatorTemplate>
                    <tr>
                        <td colspan="4">
                        <hr />
                        </td>
                    </tr>
                </SeparatorTemplate>--%>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
    

      

  • 相关阅读:
    n个数字相加
    爬取编程常用词汇,保存为Excel
    Python对 Excel 的常用操作
    Python对Redis增删改查
    Python对MySql增删改查
    Python对MongoDB增删改查
    MySql事务的简单使用
    Python-判断回文
    Pyhton 连接数据库
    PyCharm设置完自动上传,却不会自动上传任何内容
  • 原文地址:https://www.cnblogs.com/crazylight/p/2524162.html
Copyright © 2011-2022 走看看