日期:2014-05-17  浏览次数:20515 次

ASP.NET Gridview~~~~

我点击后面操作中的启用,状态列就变成一个对号的图标,点击停用状态列就变成X号。而且是无刷新的,下面是我的源码,麻烦大家给看看,帮帮忙~~~

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SetTest.aspx.cs" Inherits="SetTest" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<link href="Css/Style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
    body
    {
        font-family: "宋体";
        font-size: 12px;
        margin: 20px;
    }
    #GridView1 th
    {
        text-align: left;
    }
    #GridView1 td
    {
        text-align: left;
    }
</style>
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server" style="text-align: center">
    <asp:ScriptManager ID="ScriptManager" runat="server" />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div style="text-align: left">
                查询关键字:
                <asp:TextBox ID="TextBox1" runat="server" Width="214px"></asp:TextBox>
                <asp:Button ID="btnSubmit" runat="server" Text="确定" OnClick="btnSubmit_Click" />
                <asp:CheckBox ID="CheckBox1" runat="server" Text="已监控" />
                <asp:CheckBox ID="CheckBox2" runat="server" Text="未监控" />
                <br />
                <div style="text-align: right;">
                    <asp:Button ID="btnEdit" runat="server" Text="批量启用" OnClick="btnEdit_Click" BorderStyle="Solid" />
                    <asp:Button ID="Button1" runat="server" Text="批量停用" BorderStyle="Solid" 
                        onclick="Button1_Click" />
         &nb