温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:多功能在线考试系统改进版源码
当前文件:
OnLineExamUpdate/Web/PaperDetail.aspx,打开代码结构图
OnLineExamUpdate/Web/PaperDetail.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PaperDetail.aspx.cs" Inherits="Web_PaperDetail" %> 2
3
<%@ Register Src="../Controls/lefttree.ascx" TagName="lefttree" TagPrefix="uc1" %> 4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 5
6
<html xmlns="http://www.w3.org/1999/xhtml" > 7
<head id="Head1" runat="server"> 8
<title>试卷制定</title> 9
<script src="../JS/Morning_JS.js" type="text/javascript"></script> 10
<link href="../CSS/CSS.css" rel="stylesheet" type="text/css" /> 11
</head> 12
<body style="margin: 0px" onload="showTime();"> 13
<form id="Form1" method="post" runat="server"> 14
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%"> 15
16
<tr> 17
<td style="height:4px;" colspan="3"> 18
<img src="../Images/logo.jpg" style="border: 0px; left: 0px; position: relative; top: 0px;" title="" width ="100%"/> 19
</td> 20
</tr> 21
<tr style="background: url(../Images/lineS.jpg) repeat-x;"> 22
<td style="height:25;" colspan="3"> 23
欢迎您:<asp:Label ID="labUser" runat="server" Text="Label" Width="70px"></asp:Label> 24
<script type="text/javascript">getDate();</script> 25
26
<span id="ShowTime"></span></td> 27
</tr> 28
29
30
<tr> 31
<td style="width: 130px" align="center" valign="top"> 32
<uc1:lefttree ID="Lefttree1" runat="server" /> 33
</td> 34
<td style="width: 4px; background: url(../Images/line.gif) repeat-y;"> 35
</td> 36
<td valign="top" align="left"> 37
38
39
<table cellpadding="0" cellspacing="0" border="1" bordercolor="#cccccc" style="border-collapse:collapse" width="100%" frame="below"> 40
<tr> 41
<td style="text-align:left; width: 80px;"> 42
试卷:</td> 43
<td colspan="3"> <div align="left"></div> 44
</td> 45
</tr> 46
<tr> 47
<td colspan=4> 48
<table cellSpacing="0" style="FONT-SIZE: 12px; FONT-FAMILY: Tahoma; BORDER-COLLAPSE: collapse; " cellPadding="0" width=100% bgColor="#ffffff" border="1" bordercolor=gray> 49
<tr> 50
<td> 51
<asp:GridView ID="GridView1" runat="server" Width=100% AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3"> 52
<Columns> 53
<asp:TemplateField HeaderText="一、选择题"> 54
<ItemTemplate> 55
<TABLE id="Table2" cellSpacing="1" cellPadding="1" width="100%" align="center" border="0"> 56
<br /> 57
<TR> 58
<TD colSpan="3"> 59
<asp:Label id=Label1 runat="server" Text='<%# Container.DataItemIndex+1 %>'> 60
</asp:Label> 61
<asp:Label id=Label2 runat="server" Text='<%# Eval("Title","、{0}") %>'> 62
</asp:Label> 63
<asp:Label id=Label3 runat="server" Text='<%# Eval("ID") %>' Visible="False"> 64
</asp:Label> 65
</TD> 66
</TR> 67
<TR> 68
<TD width="35%"> 69
<asp:RadioButton id=RadioButton1 runat="server" Text='<%# Eval("AnswerA") %>' GroupName="Sl"> 70
</asp:RadioButton></TD> 71
<TD width="35%"> 72
<asp:RadioButton id=RadioButton2 runat="server" Text='<%# Eval("AnswerB") %>' GroupName="Sl"> 73
</asp:RadioButton></TD> 74
<TD></TD> 75
</TR> 76
<TR> 77
<TD width="35%"> 78
<asp:RadioButton id=RadioButton3 runat="server" Text='<%# Eval("AnswerC") %>' GroupName="Sl"> 79
</asp:RadioButton></TD> 80
<TD width="35%"> 81
<asp:RadioButton id=RadioButton4 runat="server" Text='<%# Eval("AnswerD") %>' GroupName="Sl"> 82
</asp:RadioButton></TD> 83
<TD></TD> 84
</TR> 85
</TABLE> 86
</ItemTemplate> 87
</asp:TemplateField> 88
</Columns> 89
<HeaderStyle Font-Size="12pt" HorizontalAlign="Left" /> 90
</asp:GridView> 91
</td> 92
</tr> 93
<tr> 94
<td> 95
<asp:GridView ID="GridView2" runat="server" Width=100% AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3"> 96
<Columns> 97
<asp:TemplateField HeaderText="二、多选题"> 98
<ItemTemplate> 99
<TABLE id="Table3" cellSpacing="1" cellPadding="1" width="100%" align="center" border="0"> 100
<br /> 101
<TR> 102
<TD colSpan="3"> 103
<asp:Label id=Label9 runat="server" Text='<%# Container.DataItemIndex+1 %>'> 104
</asp:Label> 105
<asp:Label id=Label10 runat="server" Text='<%# Eval("Title","、{0}") %>'> 106
</asp:Label> 107
<asp:Label id=Label6 runat="server" Text='<%# Eval("ID") %>' Visible="False"> 108
</asp:Label> 109
</TD> 110
</TR> 111
<TR> 112
<TD style="HEIGHT: 22px" width="35%"> 113
<asp:CheckBox id=CheckBox1 runat="server" Text='<%# Eval("AnswerA") %>'> 114
</asp:CheckBox></TD> 115
<TD style="HEIGHT: 22px" width="35%"> 116
<asp:CheckBox id=CheckBox2 runat="server" Text='<%# Eval("AnswerB") %>'> 117
</asp:CheckBox></TD> 118
<TD style="HEIGHT: 22px"></TD> 119
</TR> 120
<TR> 121
<TD width="35%"> 122
<asp:CheckBox id=CheckBox3 runat="server" Text='<%# Eval("AnswerC") %>'> 123
</asp:CheckBox></TD> 124
<TD width="350%"> 125
<asp:CheckBox id=CheckBox4 runat="server" Text='<%# Eval("AnswerD") %>'> 126
</asp:CheckBox></TD> 127
<TD></TD> 128
</TR> 129
</TABLE> 130
</ItemTemplate> 131
</asp:TemplateField> 132
</Columns> 133
<HeaderStyle Font-Size="12pt" HorizontalAlign="Left" /> 134
</asp:GridView> 135
</td> 136
</tr> 137
<tr> 138
<td> 139
<asp:GridView ID="GridView3" runat="server" Width=100% AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3"> 140
<Columns> 141
<asp:TemplateField HeaderText="三、判断题"> 142
<ItemTemplate> 143
<TABLE id="Table4" cellSpacing="1" cellPadding="1" width="100%" align="center" border="0"> 144
<br /> 145
<TR> 146
<TD width="85%"> 147
<asp:Label id=Label19 runat="server" Text='<%# Container.DataItemIndex+1 %>'> 148
</asp:Label> 149
<asp:Label id=Label20 runat="server" Text='<%# Eval("Title","、{0}") %>'> 150
</asp:Label> 151
<asp:Label id=Label7 runat="server" Text='<%# Eval("ID") %>' Visible="False"> 152
</asp:Label> 153
</TD> 154
<TD width="15%"> 155
<asp:CheckBox id="CheckBox5" runat="server" Text="正确"></asp:CheckBox></TD> 156
</TR> 157
</TABLE> 158
</ItemTemplate> 159
</asp:TemplateField> 160
</Columns> 161
<HeaderStyle Font-Size="12pt" HorizontalAlign="Left" /> 162
</asp:GridView> 163
</td> 164
</tr> 165
<tr> 166
<td> 167
<asp:GridView ID="GridView4" runat="server" Width=100% AutoGenerateColumns="False"> 168
<Columns> 169
<asp:TemplateField HeaderText="四、填空题"> 170
<ItemTemplate> 171
<TABLE id="Table5" cellSpacing="1" cellPadding="1" width="100%" align="center" border="0"> 172
<br /> 173
<TR> 174
<TD> 175
<asp:Label id=Label16 runat="server" Text='<%# Container.DataItemIndex+1 %>'> 176
</asp:Label> 177
<asp:Label id=Label17 runat="server" Text='<%# Eval("FrontTitle","、{0}") %>'> 178
</asp:Label> 179
<asp:TextBox id="TextBox1" runat="server" Width="150px" style="BORDER-BOTTOM: gray 1px solid" BorderStyle="None"></asp:TextBox> 180
<asp:Label id=Label18 runat="server" Text='<%# Eval("BackTitle") %>'> 181
</asp:Label> 182
<asp:Label id=Label8 runat="server" Text='<%# Eval("ID") %>' Visible="False"> 183
</asp:Label> 184
</TD> 185
</TR> 186
</TABLE> 187
</ItemTemplate> 188
</asp:TemplateField> 189
</Columns> 190
<HeaderStyle Font-Size="12pt" HorizontalAlign="Left" /> 191
</asp:GridView> 192
</td> 193
</tr> 194
195
<tr> 196
<td> 197
<asp:GridView ID="GridView5" runat="server" Width=100% AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3"> 198
<Columns> 199
<asp:TemplateField HeaderText="四、问答题"> 200
<ItemTemplate> 201
<TABLE id="Table6" cellSpacing="1" cellPadding="1" width="100%" align="center" border="0"> 202
<br> 203
<TR> 204
<TD> 205
<asp:Label id=Label21 runat="server" Text='<%# Container.DataItemIndex+1 %>'> 206
</asp:Label> 207
<asp:Label id=Label22 runat="server" Text='<%# Eval("Title","、{0}") %>'> 208
</asp:Label> 209
<br /> 210
<asp:TextBox id="txtAnswer" runat="server" Width="100%" TextMode="MultiLine"></asp:TextBox> 211
<asp:Label id=Label23 runat="server" Text='<%# Eval("ID") %>' Visible="False"> 212
</asp:Label> 213
</TD> 214
</TR> 215
</TABLE> 216
</ItemTemplate> 217
</asp:TemplateField> 218
</Columns> 219
<HeaderStyle Font-Size="12pt" HorizontalAlign="Left" /> 220
</asp:GridView> 221
</td> 222
</tr> 223
224
<tr> 225
<td align=center style="height: 31px"> 226
<asp:ImageButton ID="imgBtnReturn" runat="server" CausesValidation="false" ImageUrl="../Images/Return.GIF" OnClick="imgBtnReturn_Click" /> 227
</td> 228
</tr> 229
</table> 230
</td> 231
</tr> 232
233
</table> 234
235
</td> 236
</tr> 237
</table> 238
</form> 239
</body> 240
</html>


