温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:多功能在线考试系统源码
当前文件路径:OnLineExam/Web/admin_CourseLists.aspx

1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="admin_CourseLists.aspx.cs" Inherits="Web_admin_CourseLists" %> 2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4
5
<html xmlns="http://www.w3.org/1999/xhtml" > 6
<head runat="server"> 7
<title>无标题页</title> 8
</head> 9
<body topmargin=10 bgcolor="#f1f0f4"> 10
<form id="form1" runat="server"> 11
<div> 12
<table align="center" border="0" cellpadding="0" cellspacing="0" style="font-size: 12px; 13
font-family: Tahoma; border-collapse: collapse" width="300"> 14
<tr> 15
<td align="center"> 16
<font face="隶书" size="5">课程信息列表</font> 17
</td> 18
</tr> 19
<tr> 20
<td> 21
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" Width=100% 22
BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="ID" 23
GridLines="Vertical" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" > 24
<Columns> 25
<asp:TemplateField HeaderText="编号"> 26
<ItemTemplate> 27
<asp:Label ID="Label1" runat="server"><%# Eval("ID") %></asp:Label> 28
</ItemTemplate> 29
</asp:TemplateField> 30
<asp:TemplateField HeaderText="考试科目"> 31
<EditItemTemplate> 32
<asp:TextBox ID="txtName" runat="server" Text='<%# Eval("Name") %>' Width="80"></asp:TextBox> 33
</EditItemTemplate> 34
<ItemTemplate> 35
<asp:Label ID="Label2" runat="server"><%# Eval("Name") %></asp:Label> 36
</ItemTemplate> 37
</asp:TemplateField> 38
<asp:CommandField HeaderText="编辑" ShowEditButton="True" /> 39
<asp:TemplateField HeaderText="删除" ShowHeader="False"> 40
<ItemTemplate> 41
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete" OnClientClick="return confirm('确认要删除吗?');" 42
Text="删除"></asp:LinkButton> 43
</ItemTemplate> 44
</asp:TemplateField> 45
</Columns> 46
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" /> 47
<RowStyle BackColor="#EEEEEE" ForeColor="Black" /> 48
<SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" /> 49
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" /> 50
<HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" /> 51
<AlternatingRowStyle BackColor="Gainsboro" /> 52
</asp:GridView> 53
</td> 54
</tr> 55
<tr> 56
<td> 57
</td> 58
</tr> 59
</table> 60
61
</div> 62
</form> 63
</body> 64
</html> 65



