温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:多功能在线考试系统改进版源码
当前文件:
OnLineExamUpdate/Web/DepartmentManage.aspx,打开代码结构图
OnLineExamUpdate/Web/DepartmentManage.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DepartmentManage.aspx.cs" Inherits="Web_DepartmentManage" %> 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"> 38
39
<h4>>>部门管理</h4> 40
<hr/> 41
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="12" OnRowDataBound="GridView1_RowDataBound" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" DataKeyNames="DepartmentId" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" Font-Size="13px" Width="541px"> 42
<Columns> 43
<asp:TemplateField HeaderText="编号"> 44
<ItemTemplate> 45
<asp:Label ID="Label1" runat="server"><%# Eval("DepartmentId") %></asp:Label> 46
</ItemTemplate> 47
</asp:TemplateField> 48
<asp:TemplateField HeaderText="部门"> 49
<EditItemTemplate> 50
<asp:TextBox ID="txtDepartmentName" Width=50 runat="server" Text='<%# Eval("DepartmentName") %>'></asp:TextBox> 51
</EditItemTemplate> 52
<ItemTemplate> 53
<asp:Label ID="Label2" runat="server"><%# Eval("DepartmentName") %></asp:Label> 54
</ItemTemplate> 55
</asp:TemplateField> 56
<asp:CommandField ShowEditButton="True" HeaderText="编辑" /> 57
<asp:CommandField ShowDeleteButton="True" HeaderText="删除" /> 58
</Columns> 59
<FooterStyle BackColor="White" ForeColor="#000066" /> 60
<RowStyle ForeColor="#000066" /> 61
<SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" /> 62
<PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" /> 63
<HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" /> 64
</asp:GridView> 65
<br /><a href="DepartmentAdd.aspx" style="font-size:medium;"><font color=red><u>添加部门</u></font></a> 66
67
</td> 68
</tr> 69
</table> 70
</form> 71
</body> 72
</html> 73



