📄 testresult.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="testResult.aspx.cs" Inherits="testResult" %>
<!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" />
<link href="css/ls.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="width: 130px" >请输入学生信息: </td>
<td style="width: 158px" ><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="text-align: left;" colspan="2" ><asp:TextBox ID="txtName" runat="server"></asp:TextBox><span style="font-size: 10pt"></span></td>
</tr>
<tr>
<td style="width: 130px">请选择科目:</td><td style="width: 158px">
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
<ContentTemplate>
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True">
</asp:DropDownList>
</ContentTemplate>
</asp:UpdatePanel>
</td><td colspan="2" style="width: 176px; text-align: left;">
<asp:ImageButton ID="ImageButton1" runat="server" AlternateText="查询" ImageUrl="~/image/so.gif"
OnClick="ImageButton1_Click" /></td>
</tr>
<tr>
<td align="center" colspan="4">
<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">
<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>
</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="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 + -