📄 beforetest.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="beforeTest.aspx.cs" Inherits="beforeTest" %>
<!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 leftMargin="0" ms_positioning="GridLayout">
<form id="userInfo" method="post" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<table id="mytable" cellspacing="0" borderColor="#0066cc" width="1000" border="1">
<tr>
<td width="1000" colspan="3" style="height: 149px">
<img style="width:1000px; height:164px" src="image/banner.jpg" /></td>
</tr>
<tr>
<td colspan="3" align="center" style="HEIGHT: 147px">
<table bordercolor="#000099" width="1000" border="0" style="border-top-width: thick; border-left-width: thick; border-left-color: blue; border-bottom-width: thick; border-bottom-color: blue; border-top-color: blue; border-right-width: thick; border-right-color: blue" >
<tr>
<td colspan="1" style="background-position: left top; background-image: url(image/title_a.gif);
width: 566px; background-repeat: no-repeat; height: 16px; text-align: left; border-right: teal thick solid;">
<strong><span style="color: #ffffff">  英语试题 </span></strong></td>
<td colspan="2" style="background-position: left top; background-image: url(image/title_a.gif);
width: 500px; background-repeat: no-repeat; height: 16px; text-align: left; border-left: teal thick solid;">
<strong><span style="color: #ffffff">  C试题
</span></strong></td>
</tr>
<tr>
<td colspan="1" style=" text-align: left; width:566px; border-right: teal thick solid; vertical-align: top; height: 190px;">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"
Width="401px">
<Columns>
<asp:BoundField DataField="name" HeaderText="名称" SortExpression="name" />
<asp:HyperLinkField DataNavigateUrlFields="name" DataNavigateUrlFormatString="download/{0}.doc"
HeaderText="下载" Text="下载" />
</Columns>
</asp:GridView>
</td>
<td colspan="2" style=" text-align: left; width:500px; border-left: teal thick solid; vertical-align: top; height: 190px;">
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource2"
Width="401px">
<Columns>
<asp:BoundField DataField="name" HeaderText="名称" SortExpression="name" />
<asp:HyperLinkField DataNavigateUrlFields="name" DataNavigateUrlFormatString="download/{0}.doc"
HeaderText="下载" Text="下载" />
</Columns>
</asp:GridView>
</td>
</tr>
<tr>
<td colspan="1" style="background-position: left top; background-image: url(image/title_a.gif);
width: 566px; background-repeat: no-repeat; height: 10px; text-align: left; border-right: teal thick solid;">
<strong><span style="color: #ffffff">  C#试题 </span></strong></td>
<td colspan="2" style="background-position: left top; background-image: url(image/title_a.gif);
width: 500px; background-repeat: no-repeat; height: 10px; text-align: left; border-left: teal thick solid;">
<strong><span style="color: #ffffff">  Java试题 </span></strong></td>
</tr>
<tr>
<td colspan="1" style=" text-align: left; width:566px; border-right: teal thick solid; vertical-align: top;">
<asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource3"
Width="401px">
<Columns>
<asp:BoundField DataField="name" HeaderText="名称" SortExpression="name" />
<asp:HyperLinkField DataNavigateUrlFields="name" DataNavigateUrlFormatString="download/{0}.doc"
HeaderText="下载" Text="下载" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:OnlineExamConnectionString %>"
SelectCommand="SELECT [name] FROM [beforeTest] WHERE ([course] = @course) ORDER BY [testTime] DESC">
<SelectParameters>
<asp:Parameter DefaultValue="3" Name="course" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</td>
<td colspan="2" style=" text-align: left; width:500px; border-left: teal thick solid; vertical-align: top;">
<asp:GridView ID="GridView4" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource4"
Width="401px">
<Columns>
<asp:BoundField DataField="name" HeaderText="名称" SortExpression="name" />
<asp:HyperLinkField DataNavigateUrlFields="name" DataNavigateUrlFormatString="download/{0}.doc"
HeaderText="下载" Text="下载" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:OnlineExamConnectionString2 %>"
SelectCommand="SELECT [name] FROM [beforeTest] WHERE ([course] = @course) ORDER BY [testTime] DESC">
<SelectParameters>
<asp:Parameter DefaultValue="4" Name="course" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</td>
</tr>
<tr>
<td colspan="1" style="background-position: left top; background-image: url(image/title_a.gif);
width: 566px; background-repeat: no-repeat; height: 16px; text-align: left; border-right: teal thick solid;">
<strong><span style="color: #ffffff">  asp.net试题
</span></strong></td>
<td colspan="2" style="background-position: left top; background-image: url(image/title_a.gif);
width: 500px; background-repeat: no-repeat; height: 16px; text-align: left; border-left: teal thick solid;">
<strong><span style="color: #ffffff">  jsp试题 </span></strong></td>
</tr>
<tr>
<td colspan="1" style=" text-align: left; width:566px; border-right: teal thick solid; vertical-align: top;">
<asp:GridView ID="GridView5" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource5"
Width="401px">
<Columns>
<asp:BoundField DataField="name" HeaderText="名称" SortExpression="name" />
<asp:HyperLinkField DataNavigateUrlFields="name" DataNavigateUrlFormatString="download/{0}.doc"
HeaderText="下载" Text="下载" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource5" runat="server" ConnectionString="<%$ ConnectionStrings:OnlineExamConnectionString3 %>"
SelectCommand="SELECT [name] FROM [beforeTest] WHERE ([course] = @course) ORDER BY [testTime] DESC">
<SelectParameters>
<asp:Parameter DefaultValue="5" Name="course" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</td>
<td colspan="2" style=" text-align: left; width:500px; border-left: teal thick solid; vertical-align: top;">
<asp:GridView ID="GridView6" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource6"
Width="401px">
<Columns>
<asp:BoundField DataField="name" HeaderText="名称" SortExpression="name" />
<asp:HyperLinkField DataNavigateUrlFields="name" DataNavigateUrlFormatString="download/{0}.doc"
HeaderText="下载" Text="下载" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource6" runat="server" ConnectionString="<%$ ConnectionStrings:OnlineExamConnectionString4 %>"
SelectCommand="SELECT [name] FROM [beforeTest] WHERE ([course] = @course)">
<SelectParameters>
<asp:Parameter DefaultValue="6" Name="course" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</td>
</tr>
</table>
<asp:Button ID="btnCancle" runat="server" OnClick="btnCancle_Click" Text="退出" Width="54px" /></td>
</tr>
</table>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:OnlineExamConnectionString %>"
SelectCommand="SELECT [name] FROM [beforeTest] WHERE ([course] = @course) ORDER BY [testTime] DESC">
<SelectParameters>
<asp:Parameter DefaultValue="1" Name="course" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:OnlineExamConnectionString2 %>"
SelectCommand="SELECT [name] FROM [beforeTest] WHERE ([course] = @course) ORDER BY [testTime] DESC">
<SelectParameters>
<asp:Parameter DefaultValue="2" Name="course" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -