温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:多功能在线考试系统改进版源码
当前文件:
OnLineExamUpdate/Web/MultiSelectManage.aspx,打开代码结构图
OnLineExamUpdate/Web/MultiSelectManage.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MultiSelectManage.aspx.cs" Inherits="Web_MultiSelectManage" %> 2
3
<%@ Register Src="../Controls/lefttree.ascx" TagName="lefttree" TagPrefix="uc1" %> 4
5
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 6
7
<html xmlns="http://www.w3.org/1999/xhtml" > 8
<head id="Head1" runat="server"> 9
<title>多选题管理</title> 10
<script src="../JS/Morning_JS.js" type="text/javascript"></script> 11
<link href="../CSS/CSS.css" rel="stylesheet" type="text/css" /> 12
</head> 13
<body style="margin: 0px" onload="showTime();"> 14
<form id="Form1" method="post" runat="server"> 15
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%"> 16
17
<tr> 18
<td style="height:4px;" colspan="3"> 19
<img src="../Images/logo.jpg" style="border: 0px; left: 0px; position: relative; top: 0px;" title="" width ="100%"/> 20
</td> 21
</tr> 22
<tr style="background: url(../Images/lineS.jpg) repeat-x;"> 23
<td style="height:25;" colspan="3"> 24
欢迎您:<asp:Label ID="labUser" runat="server" Text="Label" Width="70px"></asp:Label> 25
<script type="text/javascript">getDate();</script> 26
27
<span id="ShowTime"></span></td> 28
</tr> 29
30
31
<tr> 32
<td style="width: 130px" align="center" valign="top"> 33
<uc1:lefttree ID="Lefttree1" runat="server" /> 34
</td> 35
<td style="width: 4px; background: url(../Images/line.gif) repeat-y;"> 36
</td> 37
<td valign="top" align="left" width="960px"> 38
39
<h4>>>多选题管理</h4> 40
<hr/> <p align="left"><asp:DropDownList ID="ddlCourse" runat="server" AutoPostBack="True" Width="130px" OnSelectedIndexChanged="ddlCourse_SelectedIndexChanged"></asp:DropDownList></p> 41
<asp:GridView ID="GridView1" runat="server" Width="100%" AutoGenerateColumns="False" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="12" OnRowDataBound="GridView1_RowDataBound" DataKeyNames="ID" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" Font-Size="13px" OnRowDeleting="GridView1_RowDeleting"> 42
<Columns> 43
<asp:TemplateField HeaderText="编号" Visible=false> 44
<ItemTemplate> 45
<asp:Label ID="Label1" runat="server"><%# Eval("ID") %></asp:Label> 46
</ItemTemplate> 47
</asp:TemplateField> 48
<asp:TemplateField HeaderText="序号"> 49
<ItemTemplate> 50
<center><asp:Label id="Label10" runat="server" Text='<%# Container.DataItemIndex+1 %>'></asp:Label></center> 51
</ItemTemplate> 52
</asp:TemplateField> 53
<asp:BoundField DataField="Title" HeaderText="题目" /> 54
<asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="MultiSelectAdd.aspx?ID={0}" HeaderText="详细..." Text="详细..." /> 55
56
<asp:CommandField ShowDeleteButton="True" HeaderText="删除" /> 57
</Columns> 58
<FooterStyle BackColor="White" ForeColor="#000066" /> 59
<RowStyle ForeColor="#000066" /> 60
<SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" /> 61
<PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" /> 62
<HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" /> 63
</asp:GridView> 64
<br /><a href="MultiSelectAdd.aspx" style="font-size:medium;"><font color=red><u>添加多选题</u></font></a> 65
66
</td> 67
</tr> 68
</table> 69
</form> 70
</body> 71
</html> 72



