mikebai.com

  • Home
  • dev
  • DotNET
  • M365
  • 搞笑
  • 杂七杂八
  • FocusDict
個人BLOG
it developer
  1. Main page
  2. DotNET
  3. Main content

asp:Repeater 例子

2017-12-13 121hotness 0likes 0comments

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>

<%@ Import Namespace="System.Data" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title></title>

    <style>

        .table {

            border: 1px double #A3D1AD;

            margin-top: 5px;

            margin-bottom: 5px;

            background: #FFFFFF;

            font-size: 12px;

        }

        /*选中时式样*/

        .TR_BG {

            background-color: #E4FCCB;

            font-size: 12px;

        }

        /*非选中时式样*/

        .TR_BG_list {

            background-color: #F4FFE8;

            font-size: 12px;

        }

        .sys_topBg {

            color: #47974B;

            font-size: 14px;

            text-decoration: none;

            font-weight: bold;

        }

    </style>

    <script>

        function SelectAll(f, mode)

        {

            if (mode == true)

            {

                for (i = 0; i < f.length; i++)

                {

                    if (f.elements[i].type == "checkbox")

                    {

                        f.elements[i].checked = true;

                    }

                }

            }

            else

            {

                for (i = 0; i < f.length; i++)

                {

                    if (f.elements[i].type == "checkbox")

                    {

                        f.elements[i].checked = false;

                    }

                }

            }

        }

        //CSS背景控制

        function overColor(Obj)

        {

            var elements = Obj.childNodes;

  &nbs

Tag: Nothing
Last updated:2017-12-13

mikebai

This person is a lazy dog and has left nothing

Like
< Last article
Next article >

COPYRIGHT © 2025 mikebai.com. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang