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

📄 admin_papersetup.aspx

📁 一个功能比较全的Asp.net在线考试系统源码
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="admin_PaperSetup.aspx.cs" Inherits="Web_admin_PaperSetup" %>

<!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>
</head>
<body topmargin=5 bgcolor="#f1f0f4" leftmargin=2 rightmargin=2>
    <form id="form1" runat="server">
    <div>                                        
    <table cellSpacing="0" style="FONT-SIZE: 12px; FONT-FAMILY: Tahoma; BORDER-COLLAPSE: collapse; " cellPadding="0" width=550 align="center"
				bgColor="#ffffff" border="1" bordercolor=gray>
				<tr height=40>
					<td colSpan="4" align=center>						
						<IMG height="25" src="../Images/ico_Xp03.gif"><font color=#4D2600><b>试卷制定</b></font>				
					</td>
				</tr>
				<tr height=30>
					<TD nowrap>考试科目:</TD>
					<TD><asp:dropdownlist id="ddlCourse" runat="server" Font-Size="9pt" Width="88px"></asp:dropdownlist></TD>
					<td nowrap>试卷名称:</td>
					<td>
                        <asp:TextBox ID="txtPaperName" runat="server" Width="120px"></asp:TextBox></td>
				</tr>
				<tr height=30>
				    <td colspan=4><font color=#4D2600><b>单选题:</b></font></td>
				</tr>
				<tr height=30>					
					<TD>题目数目:</TD>
					<td><asp:TextBox ID="txtSingleNum" runat="server" Width="120px"></asp:TextBox></td>
					<TD>每题分值:</TD>
					<td>
                        <asp:TextBox ID="txtSingleFen" runat="server" Width="120px"></asp:TextBox></td>
				</tr>
				<tr height=30>
				    <td colspan=4 style="height: 30px"><font color=#4D2600><b>多选题:</b></font></td>
				</tr>
				<tr height=30>					
					<TD>题目数目:</TD>
					<td><asp:TextBox ID="txtMultiNum" runat="server" Width="120px"></asp:TextBox></td>
					<TD>每题分值:</TD>
					<td>
                        <asp:TextBox ID="txtMultiFen" runat="server" Width="120px"></asp:TextBox></td>
				</tr>
				<tr height=30>
				    <td colspan=4><font color=#4D2600><b>判断题:</b></font></td>
				</tr>
				<tr height=30>					
					<TD>题目数目:</TD>
					<td><asp:TextBox ID="txtJudgeNum" runat="server" Width="120px"></asp:TextBox></td>
					<TD>每题分值:</TD>
					<td>
                        <asp:TextBox ID="txtJudgeFen" runat="server" Width="120px"></asp:TextBox></td>
				</tr>
				<tr height=30>
				    <td colspan=4><font color=#4D2600><b>填空题:</b></font></td>
				</tr>
				<tr height=30>					
					<TD>题目数目:</TD>
					<td><asp:TextBox ID="txtFillNum" runat="server" Width="120px"></asp:TextBox></td>
					<TD>每题分值:</TD>
					<td>
                        <asp:TextBox ID="txtFillFen" runat="server" Width="120px"></asp:TextBox></td>
				</tr>					
				<tr height=40>
				    <td colspan=4 align=center>
                        <asp:ImageButton ID="imgBtnConfirm" runat="server" ImageUrl="~/Images/Confirm.GIF" OnClick="imgBtnConfirm_Click" /></td>
				</tr>
				<tr>
				    <td colspan=4>
                        <asp:Panel ID="Panel1" runat="server" Width=100% Visible="False">
                            <table cellSpacing="0" style="FONT-SIZE: 12px; FONT-FAMILY: Tahoma; BORDER-COLLAPSE: collapse; " cellPadding="0" width=100%	bgColor="#ffffff" border="1" bordercolor=gray>
				                <tr>
				                    <td>
				                        <asp:GridView ID="GridView1" runat="server" Width=100% AutoGenerateColumns="False">
                                            <Columns>
								                <asp:TemplateField HeaderText="一、选择题">
									                <ItemTemplate>
										                <TABLE id="Table2" cellSpacing="1" cellPadding="1" width="100%" align="center" border="0">
											                <TR>
												                <TD colSpan="3">
													                <asp:Label id=Label1 runat="server" Text='<%# Container.DataItemIndex+1 %>'>
													                </asp:Label>
													                <asp:Label id=Label2 runat="server" Text='<%# Eval("Title","、{0}") %>'>
													                </asp:Label>
													                <asp:Label id=Label3 runat="server" Text='<%# Eval("ID") %>' Visible="False">
													                </asp:Label>
													                </TD>
											                </TR>
											                <TR>
												                <TD width="35%">
													                <asp:RadioButton id=RadioButton1 runat="server" Text='<%# Eval("AnswerA") %>' GroupName="Sl">
													                </asp:RadioButton></TD>
												                <TD width="35%">
													                <asp:RadioButton id=RadioButton2 runat="server" Text='<%# Eval("AnswerB") %>' GroupName="Sl">
													                </asp:RadioButton></TD>
												                <TD></TD>
											                </TR>
											                <TR>
												                <TD width="35%">
													                <asp:RadioButton id=RadioButton3 runat="server" Text='<%# Eval("AnswerC") %>' GroupName="Sl">
													                </asp:RadioButton></TD>
												                <TD width="35%">
													                <asp:RadioButton id=RadioButton4 runat="server" Text='<%# Eval("AnswerD") %>' GroupName="Sl">
													                </asp:RadioButton></TD>
												                <TD></TD>
											                </TR>
										                </TABLE>
									                </ItemTemplate>
								                </asp:TemplateField>
							                </Columns>
                                            <HeaderStyle Font-Size="12pt" HorizontalAlign="Left" />
                                        </asp:GridView>
                                    </td>
				                </tr>
				                <tr>
				                    <td>
				                        <asp:GridView ID="GridView2" runat="server" Width=100% AutoGenerateColumns="False">
                                            <Columns>
								                <asp:TemplateField HeaderText="二、多选题">
									                <ItemTemplate>
										                <TABLE id="Table3" cellSpacing="1" cellPadding="1" width="100%" align="center" border="0">
											                <TR>
												                <TD colSpan="3">
													                <asp:Label id=Label9 runat="server" Text='<%# Container.DataItemIndex+1 %>'>
													                </asp:Label>
													                <asp:Label id=Label10 runat="server" Text='<%# Eval("Title","、{0}") %>'>
													                </asp:Label>
													                <asp:Label id=Label6 runat="server" Text='<%# Eval("ID") %>' Visible="False">
													                </asp:Label>
													                </TD>
											                </TR>
											                <TR>
												                <TD style="HEIGHT: 22px" width="35%">
													                <asp:CheckBox id=CheckBox1 runat="server" Text='<%# Eval("AnswerA") %>'>
													                </asp:CheckBox></TD>
												                <TD style="HEIGHT: 22px" width="35%">
													                <asp:CheckBox id=CheckBox2 runat="server" Text='<%# Eval("AnswerB") %>'>
													                </asp:CheckBox></TD>
												                <TD style="HEIGHT: 22px"></TD>
											                </TR>
											                <TR>
												                <TD width="35%">
													                <asp:CheckBox id=CheckBox3 runat="server" Text='<%# Eval("AnswerC") %>'>
													                </asp:CheckBox></TD>
												                <TD width="350%">
													                <asp:CheckBox id=CheckBox4 runat="server" Text='<%# Eval("AnswerD") %>'>
													                </asp:CheckBox></TD>
												                <TD></TD>
											                </TR>
										                </TABLE>
									                </ItemTemplate>
								                </asp:TemplateField>
							                </Columns>
                                            <HeaderStyle Font-Size="12pt" HorizontalAlign="Left" />
                                        </asp:GridView>
				                    </td>
				                </tr>
				                <tr>
				                    <td>
				                        <asp:GridView ID="GridView3" runat="server" Width=100% AutoGenerateColumns="False">
                                            <Columns>
								                <asp:TemplateField HeaderText="三、判断题">
									                <ItemTemplate>
										                <TABLE id="Table4" cellSpacing="1" cellPadding="1" width="100%" align="center" border="0">
											                <TR>
												                <TD width="85%">
													                <asp:Label id=Label19 runat="server" Text='<%# Container.DataItemIndex+1 %>'>
													                </asp:Label>
													                <asp:Label id=Label20 runat="server" Text='<%# Eval("Title","、{0}") %>'>
													                </asp:Label>
													                <asp:Label id=Label7 runat="server" Text='<%# Eval("ID") %>' Visible="False">
													                </asp:Label>
													                </TD>
												                <TD width="15%">
													                <asp:CheckBox id="CheckBox5" runat="server" Text="正确"></asp:CheckBox></TD>
											                </TR>
										                </TABLE>
									                </ItemTemplate>
								                </asp:TemplateField>
							                </Columns>
                                            <HeaderStyle Font-Size="12pt" HorizontalAlign="Left" />
                                        </asp:GridView>
				                    </td>
				                </tr>
				                <tr>
				                    <td>
				                        <asp:GridView ID="GridView4" runat="server" Width=100% AutoGenerateColumns="False">
                                            <Columns>
								                <asp:TemplateField HeaderText="四、填空题">
									                <ItemTemplate>
										                <TABLE id="Table5" cellSpacing="1" cellPadding="1" width="100%" align="center" border="0">
											                <TR>
												                <TD>
													                <asp:Label id=Label16 runat="server" Text='<%# Container.DataItemIndex+1 %>'>
													                </asp:Label>
													                <asp:Label id=Label17 runat="server" Text='<%# Eval("FrontTitle","、{0}") %>'>
													                </asp:Label>
													                <asp:TextBox id="TextBox1" runat="server" Width="100px"></asp:TextBox>
													                <asp:Label id=Label18 runat="server" Text='<%# Eval("BackTitle") %>'>
													                </asp:Label>
													                <asp:Label id=Label8 runat="server" Text='<%# Eval("ID") %>' Visible="False">
													                </asp:Label>													                
													                </TD>
											                </TR>
										                </TABLE>
									                </ItemTemplate>
								                </asp:TemplateField>
							                </Columns>
                                            <HeaderStyle Font-Size="12pt" HorizontalAlign="Left" />
                                        </asp:GridView>
				                    </td>
				                </tr>
				                <tr>
				                    <td align=center style="height: 31px">
                                        <asp:ImageButton ID="imgBtnSave" runat="server" ImageUrl="~/Images/Save.GIF" OnClick="imgBtnSave_Click" /></td>
				                </tr>
				            </table>
                        </asp:Panel>
				    </td>
				</tr>
			</table>
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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