⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stuinfoview.aspx

📁 在线考试系统 主要真对考试 开发的个人项目
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="stuInfoView.aspx.cs" Inherits="stuInfoView" %>

<!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>
    <link href="css/child.css" rel="stylesheet" type="text/css" />
       <script   language="JavaScript"   type="text/javascript">
     var lastCheck = null;   
     function check(e)   
     {
         if(lastCheck != null)   
             lastCheck.checked = false;   
         lastCheck = e;   
     }   

</script>

 
</head>
<body >
    <form id="form1" runat="server">
    <div style="text-align: center">        
        <h1 align="center">
            <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="True">
            </asp:ScriptManager>
            <span style="font-size: 24pt; color: #3399ff;">
            学生信息管理</span></h1>
			<table id="mytable" cellspacing="0" width="800" align="center" border="1" cellpadding="0">
				<tr>
					<td style="text-align: left" colspan="3">
                        &nbsp;<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/image/新增.gif"
                            OnClick="ImageButton1_Click" />
                        &nbsp;<asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/image/修改.gif"
                            OnClick="ImageButton2_Click" />&nbsp;
                        <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/image/删除.gif" OnClick="ImageButton3_Click" />
                        &nbsp; &nbsp; &nbsp; <span style="font-size: 10pt; color: #666699; font-family: 宋体">
                            选中修改时,如果选中多行,则只对第一个进行修改</span></td>
				</tr>
				<tr style="height:20px">
					<td style="HEIGHT: 17px"  align=left>输入查询条件:<asp:textbox id="tbx_query" runat="server"></asp:textbox></td><td style="width: 293px; height: 17px;">
							&nbsp;&nbsp;&nbsp;<asp:UpdatePanel
                                ID="UpdatePanel2" runat="server" >
                                <ContentTemplate>
                                    <asp:dropdownlist id="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
								<asp:ListItem Value="stuId" Selected="True">学号</asp:ListItem>
								<asp:ListItem Value="stuName">学生姓名</asp:ListItem>
								<asp:ListItem Value="stuStatus">学生状态</asp:ListItem>
							</asp:dropdownlist>
                                <asp:dropdownlist id="DropDownList2" runat="server" Visible="False">
								<asp:ListItem Value="0">没有考试</asp:ListItem>
								<asp:ListItem Value="1">考试中</asp:ListItem>
							</asp:dropdownlist>
                                </ContentTemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="DropDownList1" EventName="SelectedIndexChanged" />
                                </Triggers>
                            </asp:UpdatePanel>
                        (支持模糊查询)</td><td style="height: 17px; text-align: left;"><asp:imagebutton id="Ibtn_query" runat="server" ImageUrl="~/image/so.gif" OnClick="Ibtn_query_Click" AlternateText="查询"></asp:imagebutton><br />
                    </td>
				</tr>
				<tr>
					<td colSpan="5" height="300" align="center" valign="top">
                        &nbsp;
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                        <asp:GridView ID="GridView1" runat="server" Width="788px" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateColumns="False" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging">
                                                       
                            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                            <Columns> 
                                <asp:TemplateField HeaderText="选择">                                     
                                    <HeaderTemplate> 
                                        <asp:CheckBox ID="cbSelAll" runat="server" Text="全选" AutoPostBack="True" OnCheckedChanged="cbSelAll_CheckedChanged"  /> 
                                    </HeaderTemplate> 
                                    <ItemTemplate> 
                                        <asp:CheckBox ID="cbSel" runat="server" OnCheckedChanged="cbSel_CheckedChanged" OnClick="check(this)"  /> 
                                    </ItemTemplate>  
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:TemplateField>                              
                                <asp:BoundField DataField="StuId" HeaderText="学号" SortExpression="StuId" >
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="StuName" HeaderText="姓名" SortExpression="StuName" >
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="StuSex" HeaderText="性别" SortExpression="StuSex" >
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="StuStatus" HeaderText="学生状态" SortExpression="StuStatus" >
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="StuCurrentCourse" HeaderText="考试科目" SortExpression="StuCurrentCourse" >
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="StuPwd" HeaderText="密码" SortExpression="StuPwd" >
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:BoundField>                                
                            </Columns>
                            <RowStyle BackColor="#E3EAEB" />
                            <EditRowStyle BackColor="#7C6F57" HorizontalAlign="Left" VerticalAlign="Middle" />
                            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                            <PagerStyle BackColor="#666666" ForeColor="Black" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                            
                            
                        </asp:GridView>
						<asp:Label id="lbl_noResult" runat="server" ForeColor="Red" Visible="False">没有满足要求的记录</asp:Label>
                            </ContentTemplate>
                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="GridView1" EventName="PageIndexChanging" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton3" EventName="Click" />
                            </Triggers>
                        </asp:UpdatePanel>
                    </td>
				</tr>
				
			</table>            
    </div>
   </form>  
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -