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

📄 selectscore.aspx

📁 精通网络应用系统开发 光盘 该书是人民邮电出版社出版的
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SelectScore.aspx.cs" Inherits="DesktopModules_Score_SelectScore" %>

<!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/ASPNET2BaseCss.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body leftMargin="0" topMargin="0">
		<form id="Form1" method="post" runat="server">
			<table border="0" cellpadding="0" cellspacing="0" style="BORDER-COLLAPSE: collapse" bordercolor="#111111"
				width="100%" height="1">
				<tr height="30">
					<td width="3%" bgcolor="#c0d9e6" class="GbText" background="../../Images/treetopbg.jpg"><font color="#006699" size="3"><img src="../../Images/moduleheaher.gif" width="16" height="16"></font></td>
					<td bgcolor="#c0d9e6" class="GbText" background="../../Images/treetopbg.jpg"><b>学生成绩查询</b></td>
				</tr>
			</table>
			<TABLE class="GbText" style="BORDER-COLLAPSE: collapse" borderColor="#93bee2" cellSpacing="0"
				cellPadding="0" width="100%" border="1">
				<tr height="30">
					<td colspan="2"><asp:DropDownList runat="server" ID="MethodList" CssClass="SelectSta" Width="200" AutoPostBack="True" OnSelectedIndexChanged="MethodList_SelectedIndexChanged">
						<asp:ListItem Value="0">按年级查询</asp:ListItem>
						<asp:ListItem Value="1">按班级查询</asp:ListItem>
						<asp:ListItem Value="2">按学生查询</asp:ListItem>
						<asp:ListItem Value="3">按课程查询</asp:ListItem>
					</asp:DropDownList><font class="GbText">请选择查询方式</font></td>
				</tr>
				<tr height="30">
					<td colspan="2"><asp:DropDownList runat="server" ID="GradeList" CssClass="SelectSta" Width="200" AutoPostBack="True" OnSelectedIndexChanged="GradeList_SelectedIndexChanged" Visible="False">					
					</asp:DropDownList><asp:Label ID="GradeLable" runat="server" Visible="False"><font class="GbText">请选择年级</font></asp:Label></td>
				</tr>
				<tr height="30">
					<td colspan="2"><asp:DropDownList runat="server" ID="ClassList" CssClass="SelectSta" Width="200" AutoPostBack="True" OnSelectedIndexChanged="ClassList_SelectedIndexChanged" Visible="False">					
					</asp:DropDownList><asp:Label ID="ClassLabel" runat="server" Visible="False"><font class="GbText">请选择班级</font></asp:Label></td>
				</tr>
				<tr height="30">
					<td colspan="2"><asp:DropDownList runat="server" ID="StudentList" CssClass="SelectSta" Width="200" AutoPostBack="True" Visible="False">					
					</asp:DropDownList><asp:Label ID="StudentLabel" runat="server" Visible="False"><font class="GbText">请选择学生</font></asp:Label></td>
				</tr>
				<tr height="30">
					<td colspan="2"><asp:DropDownList runat="server" ID="CourseList" CssClass="SelectSta" Width="200" AutoPostBack="True" Visible="False">					
					</asp:DropDownList><asp:Label ID="CourseLabel" runat="server" Visible="False"><font class="GbText">请选择课程</font></asp:Label></td>
				</tr>		
				<tr height="30">
					<td colspan="2" align="center">
						<asp:Button ID="SelectBtn" runat="server" CssClass="ButtonCss" Text="查询学生成绩" Width="200px" OnClick="SelectBtn_Click" /></td>
				</tr>		
				<tr height="30">
					<td colspan="2"><hr size="2" color="darkred" /></td>
				</tr>
				<tr height="30">
					<td colspan="2">
<asp:GridView ID="gvScore" Width="100%" CssClass="GbText" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1" CellPadding="4">
	<FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
	<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
	<PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
	<RowStyle BackColor="White" ForeColor="#330099" />
	<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
	<Columns>
		<asp:TemplateField HeaderText="学生名称" ItemStyle-BorderWidth="1">
			<ItemTemplate>
				<%#Eval("Student.Name") %>
			</ItemTemplate>
		</asp:TemplateField>
		<asp:TemplateField HeaderText="课程名称" ItemStyle-BorderWidth="1">
			<ItemTemplate>
				<%#Eval("Course.Desn") %>
			</ItemTemplate>
		</asp:TemplateField>
		<asp:TemplateField HeaderText="成绩" ItemStyle-BorderWidth="1">
			<ItemTemplate>
				<%#Eval("Mark") %>
			</ItemTemplate>
		</asp:TemplateField>
	</Columns>
</asp:GridView>
					</td>
				</tr>								
				<TR height="30">
					<TD align="right" width="150">&nbsp;</TD>
					<TD align="left"><FONT face="宋体">&nbsp;</FONT>
						<asp:button id="ReturnBtn" runat="server" Width="100px" CssClass="ButtonCss" Text="返      回"
							CausesValidation="False" OnClick="ReturnBtn_Click"></asp:button></TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>

⌨️ 快捷键说明

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