📄 createexam.ascx
字号:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CreateExam.ascx.cs" Inherits="TeachHelper_Controls_CreateExam" %>
<table border="1" cellpadding="0" cellspacing="0" bordercolor="#6699CC" style="height: 34px; width: 356px;">
<tr>
<th valign="top" scope="col" style="width: 486px; height: 121px"><table border="0" cellpadding="0" cellspacing="0" style="width: 356px">
<tr>
<th bgcolor="#6699CC" scope="col" style="width: 361px; height: 29px">
发布考试</th>
</tr>
<tr>
<td height="30" style="width: 361px"> <table style="width: 351px; height: 69px">
<tr>
<td align="right" style="width: 139px">
</td>
<td style="width: 269px" align="left">
<asp:Label ID="LabelMessage" runat="server" ForeColor="Red"></asp:Label></td>
</tr>
<tr>
<td style="width: 139px" align="right">
名称:</td>
<td style="width: 269px" align="left">
<asp:TextBox ID="TextBoxName" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidatorName" runat="server" ControlToValidate="TextBoxName"
ErrorMessage="名称不能为空" ToolTip="名称不能为空" ValidationGroup="AddExam" Display="Dynamic">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 139px" align="right">
老师:</td>
<td style="width: 269px" align="left">
<asp:DropDownList ID="DropDownListTeacher" runat="server">
</asp:DropDownList></td>
</tr>
<tr>
<td style="width: 139px" align="right">
院系:</td>
<td style="width: 269px" align="left">
<asp:DropDownList ID="DropDownListDepartment" runat="server" AutoPostBack="True"
OnSelectedIndexChanged="DropDownListDepartment_SelectedIndexChanged">
</asp:DropDownList></td>
</tr>
<tr>
<td style="width: 139px" align="right">
年级:</td>
<td style="width: 269px" align="left">
<asp:DropDownList ID="DropDownListGrade" runat="server">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem>4</asp:ListItem>
<asp:ListItem>5</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td style="width: 139px" align="right">
专业:</td>
<td style="width: 269px" align="left">
<asp:DropDownList ID="DropDownListMajor" runat="server">
</asp:DropDownList></td>
</tr>
<tr>
<td style="width: 139px; height: 24px" align="right">
班级:</td>
<td style="width: 269px; height: 24px" align="left">
<asp:DropDownList ID="DropDownListClasses" runat="server">
</asp:DropDownList></td>
</tr>
<tr>
<td style="width: 139px" align="right">
科目:</td>
<td style="width: 269px" align="left">
<asp:DropDownList ID="DropDownListSubject" runat="server" DataSourceID="ObjectDataSourceSubject" DataTextField="Name" DataValueField="Id">
</asp:DropDownList></td>
</tr>
<tr>
<td style="width: 139px; height: 24px" align="right">
类型:</td>
<td style="width: 269px; height: 24px" align="left">
<asp:DropDownList ID="DropDownListExamType" runat="server" DataSourceID="ObjectDataSourceExamType" DataTextField="Name" DataValueField="Id">
</asp:DropDownList></td>
</tr>
<tr>
<td style="width: 139px" align="right">
考试时间:</td>
<td style="width: 269px" align="left">
<asp:TextBox ID="TextBoxTime" runat="server" Width="116px"></asp:TextBox>
<a href="javascript:OpenPopupPage('Calendar.aspx','ctl00_maincontent_WebPartManagerAchievement_gwpCreateExam1_CreateExam1_TextBoxTime','false');">
<img src="images/icon-calendar.gif" > </a>
<asp:RequiredFieldValidator ID="RequiredFieldValidatorTime" runat="server" ControlToValidate="TextBoxTime"
ErrorMessage="考试时间不能为空" ToolTip="考试时间不能为空" ValidationGroup="AddExam">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td style="width: 139px; height: 74px" align="right">
描述:</td>
<td style="width: 269px; height: 74px" valign="top" align="left">
<asp:TextBox ID="TextBoxDescription" runat="server" Height="68px" TextMode="MultiLine"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 139px">
</td>
<td style="width: 269px">
</td>
</tr>
<tr>
<td style="width: 139px">
</td>
<td style="width: 269px" align="left">
<asp:Button ID="ButtonSubmit" runat="server" OnClick="ButtonSubmit_Click" Text=" 提 交 "
ValidationGroup="AddExam" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="height: 30px; width: 361px;"><asp:ObjectDataSource ID="ObjectDataSourceSubject" runat="server" SelectMethod="GetCollect"
TypeName="TeachHelper.BusinessLogicLayer.Subject"></asp:ObjectDataSource>
<asp:ObjectDataSource ID="ObjectDataSourceExamType" runat="server" SelectMethod="GetCollect"
TypeName="TeachHelper.BusinessLogicLayer.ExamType"></asp:ObjectDataSource>
</td>
</tr>
</table>
</th>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -