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

关于GridView1中编辑刷新问题,求指点
前台:<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeBehind="UI.aspx.cs" Inherits="异动处理.UI" %>

<!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">
<head runat="server" >
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div style="border:auto" >
    <div style="background-color: #008080; width: 1224px;">&nbsp;<asp:Label ID="Label3" 
            runat="server" Text="考勤系统异动处理:" ></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label4" runat="server" Text="选择:"></asp:Label>
&nbsp;&nbsp;  
        <asp:DropDownList ID="DropDownList3" runat="server" Height="26px" 
            onselectedindexchanged="DropDownList3_SelectedIndexChanged" Width="74px">
            <asp:ListItem>管理员</asp:ListItem>
            <asp:ListItem>教师</asp:ListItem>
            <asp:ListItem>学生</asp:ListItem>
        </asp:DropDownList>
        </div>
           <div style="background-color: #008080; width: 1224px;">
    
               <asp:Label ID="Label1" runat="server" Text="查询范围:"></asp:Label>


&nbsp;&nbsp; <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" 
                   onselectedindexchanged="DropDownList2_SelectedIndexChanged">
                   <asp:ListItem>--请选择--</asp:ListItem>
                   <asp:ListItem>教工号查询</asp:ListItem>
                   <asp:ListItem>姓名查询</asp:ListItem>
                   <asp:ListItem>周次查询</asp:ListItem>
                   <asp:ListItem>节次查询</asp:ListItem>
                   <asp:ListItem>课程查询</asp:ListItem>
 &