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>

    转载自http://www.cnblogs.com/zhwl/archive/2012/02/22/2363306.html

  • 相关阅读:
    迭代器生成器和协程函数
    装饰器
    对haproxy.conf文件的增删改查
    函数基础
    深入理解python字符编码
    python字符串列表字典常用方法
    委托的使用
    数据库连接
    输入输出流
    泛型集合的使用
  • 原文地址:https://www.cnblogs.com/CoolChen/p/2364733.html
Copyright © 2011-2022 走看看