zoukankan      html  css  js  c++  java
  • 网页数据表格自动填充序号

     <asp:Repeater EnableViewState="false" ID="Repeater1" runat="server">
                    <HeaderTemplate>
                        <table cellspacing="0"  border="1" id="main_GridView1" width="100%">
                            <tr bgcolor="#CCCCFF">
                                <th style=" 15%">
                                    Guid</th>
                                <th style=" 15%">
                                    序号</th>
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr bgcolor="#FAF3DC">
                            <td>
                                <%# DataBinder.Eval(Container.DataItem, "sGuidID") %>
                            </td>
                            <td>
                                <%# this.Repeater1.Items.Count + 1%>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </asp:Repeater>

  • 相关阅读:
    使用接口测试活动的中奖概率(随机事件测试)
    关于测试用例冗余的一些思考
    正则表达式经典实例
    自动化测试断言Assent的使用
    equals与==区别
    Git的使用以及GitHub
    django的配置文件字符串是怎么导入的?
    支付宝支付相关开发
    Django的contenttypes
    推荐课程及用户登录
  • 原文地址:https://www.cnblogs.com/zhwl/p/2363306.html
Copyright © 2011-2022 走看看