• DataList如何实现横向排列数据交替行变色!


    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
        <HEAD>
            <title>WebForm15</title>
            <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
            <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
            <meta content="JavaScript" name="vs_defaultClientScript">
            <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
        </HEAD>
        <body MS_POSITIONING="GridLayout">
            <form id="Form1" method="post" runat="server">
                <asp:datalist id="DataList1" style="Z-INDEX: 101; LEFT: 111px; POSITION: absolute; TOP: 54px"
                    runat="server" RepeatDirection="Horizontal" RepeatColumns="3" Width="234px">
                    <ItemTemplate>
                        <asp:Label ID="lblmsg" Runat=server Text='<%# DataBinder.Eval(Container.DataItem,"id").ToString() %>'>
                        </asp:Label>
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <asp:Label ID="Label2" Runat=server Text='<%# DataBinder.Eval(Container.DataItem,"id").ToString() %>'>
                        </asp:Label>
                    </AlternatingItemTemplate>
                </asp:datalist></form>
        </body>
    </HTML>


  • 相关阅读:
    Python编程四大神兽:迭代器、生成器、闭包和装饰器
    Linux基础
    3.8记录
    3.7记录
    3.6进度记录
    3.5进度
    3.4进度
    3.3进度
    3.2进度记录
    3.1记录
  • 原文地址:https://www.cnblogs.com/lljinz/p/2036114.html
Copyright © 2020-2023  润新知