zoukankan      html  css  js  c++  java
  • Repeater的使用及其鼠标特效,行链接的使用

    原文发布时间为:2009-04-22 —— 来源于本人的百度文章 [由搬家工具导入]

    <asp:Repeater ID="rpt" runat="server">
            <HeaderTemplate>
                <tr>
                    <td style=" 12%">
                        字段名</td>
                    <td style=" 23% ">
                        字段名</td>
                    <td style=" 23% ">
                        字段名</td>
                    <td style=" 12% ">
                        字段名</td>
                    <td style=" 18% ">
                        字段名</td>
                    <td style=" 12% ">
                        字段名</td>
                </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <a onclick='openPage(<%#Eval("Id")%>)' target="_blank">
                    <tr style="cursor: pointer;" onmouseover="c=this.style.backgroundColor;this.style.backgroundColor='AliceBlue';"
                        onmouseout="this.style.backgroundColor=c;" title="点击打开网页">
                        <td style=" 12%;">
                            <%#Eval("a")%>
                        </td>
                        <td style=" 23%;">
                            <%#Eval("b")%>
                        </td>
                        <td style=" 23%;">
                            <%#Eval("c")%>
                        </td>
                        <td style=" 12%;">
                            <%#Eval("d")%>
                        </td>
                        <td style=" 18%;">
                            <%# DateTime.Parse(Eval(" Date").ToString()).ToString("yyyy-MM-dd")%>
                        </td>
                        <td style=" 12%;">
                            <%#Eval("e")%>
                        </td>
                    </tr>
                </a>
            </ItemTemplate>
        </asp:Repeater>
  • 相关阅读:
    【Distributed】缓存技术
    【Redis】基本数据类型
    【Redis】安装、开启以及关闭
    【Ehcache】基础知识学习
    VS2012 改C# 模版
    C# Windows Services 启动和结束其它进程
    .net Console.ReadLine无效
    VS2012在解决方案资源管理器显示解决方案名称
    Mysql 数据库中9大对象
    C# 开发 Windows 服务 使用Log4net 组件 不能生成日志文件
  • 原文地址:https://www.cnblogs.com/handboy/p/7153327.html
Copyright © 2011-2022 走看看