📄 testresultbyteacher.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="testResultByTeacher.aspx.cs" Inherits="testResultByTeacher" %>
<!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" />
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
</div>
<table id="mytable" cellspacing="0" width="800" align="center" cellpadding="0" >
<tr>
<td style="height: 50px; width: 117px;" >请输入学生信息: </td>
<td style="width: 25px; height: 50px" ><asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<asp:DropDownList ID="dd_stu" runat="server" AutoPostBack="True">
<asp:ListItem>学号</asp:ListItem>
<asp:ListItem>姓名</asp:ListItem>
</asp:DropDownList>
</ContentTemplate>
</asp:UpdatePanel></td>
<td style="width: 50px;height: 50px" ><asp:TextBox ID="txtName" runat="server"></asp:TextBox></td>
<td style="height: 50px" colspan="2" >
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/image/so.gif" OnClick="ImageButton1_Click" />
</td>
</tr>
<tr>
<td align="center" colspan="5">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
CellPadding="4" ForeColor="#333333" GridLines="None" OnPageIndexChanging="GridView1_PageIndexChanging"
OnRowDeleting="GridView1_RowDeleting" Width="763px" DataKeyNames="stuId,courseName" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" OnRowCommand="GridView1_RowCommand">
<FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<Columns>
<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="courseName" HeaderText="科目" SortExpression="courseName" >
<ItemStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="score" HeaderText="分数" SortExpression="score" >
<ItemStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:CommandField HeaderText="编辑" ShowEditButton="True" >
<ItemStyle HorizontalAlign="Left" />
</asp:CommandField>
<asp:CommandField HeaderText="删除" ShowDeleteButton="True" >
<ItemStyle HorizontalAlign="Left" />
</asp:CommandField>
<asp:ButtonField HeaderText = "查看问答题详细" ButtonType="Button" Text ="查看问答题详细" CommandName="Detail" >
<ItemStyle HorizontalAlign="Left" />
</asp:ButtonField>
</Columns>
<RowStyle BackColor="#E3EAEB" />
<EditRowStyle BackColor="#7C6F57" />
<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>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="GridView1" EventName="PageIndexChanging" />
<asp:AsyncPostBackTrigger ControlID="GridView1" EventName="RowCommand" />
<asp:AsyncPostBackTrigger ControlID="GridView1" EventName="RowDeleting" />
<asp:AsyncPostBackTrigger ControlID="GridView1" EventName="RowUpdating" />
<asp:AsyncPostBackTrigger ControlID="GridView1" EventName="RowEditing" />
<asp:AsyncPostBackTrigger ControlID="GridView1" EventName="RowCancelingEdit" />
<asp:AsyncPostBackTrigger ControlID="ImageButton1" EventName="Click" />
</Triggers>
</asp:UpdatePanel> </td>
</tr>
</table>
<asp:UpdatePanel ID="UpdatePanel4" runat="server">
<ContentTemplate>
<asp:Label ID="Label1" runat="server" Font-Size="XX-Large"></asp:Label>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="GridView1" EventName="RowUpdating" />
<asp:AsyncPostBackTrigger ControlID="GridView1" EventName="RowDeleting" />
<asp:AsyncPostBackTrigger ControlID="ImageButton1" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -