📄 scoreedit.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="scoreEdit.aspx.cs" Inherits="scoreEdit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>网络选修系统</title>
<script language="JavaScript">
function delete_confirm(e)
{
if (event.srcElement.outerText=="删除")
event.returnValue=confirm("您确定要删除吗?注意:此操作不可恢复,请谨慎操作!");
}
document.onclick=delete_confirm;
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<table id="table1" align="center" border="0" style="font-size: 12px" width="100%">
<tr>
<td align="center" style="width: 281px">
课程名称:<asp:DropDownList ID="ddlCource" runat="server" AutoPostBack="True" DataTextField="courceName"
DataValueField="courceID" Font-Size="10pt" OnSelectedIndexChanged="ddlCource_SelectedIndexChanged"
Width="85px">
</asp:DropDownList>
教师姓名:<asp:DropDownList ID="ddlTeacher" runat="server" AutoPostBack="True" DataTextField="teaName"
DataValueField="teaID" Font-Size="10pt" OnSelectedIndexChanged="ddlTeacher_SelectedIndexChanged"
Width="70px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="center" style="width: 100%; height: 100%">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Horizontal"
OnRowCancelingEdit="GridView1_RowCancelingEdit1" OnRowDeleting="GridView1_RowDeleting1"
OnRowEditing="GridView1_RowEditing1" OnRowUpdating="GridView1_RowUpdating1" Width="100%">
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<Columns>
<asp:BoundField DataField="Sno" HeaderText="学号" ReadOnly="True" />
<asp:BoundField DataField="Name" HeaderText="姓名" ReadOnly="True" />
<asp:BoundField DataField="Grade" HeaderText="年级" ReadOnly="True" />
<asp:BoundField DataField="Class" HeaderText="班级" ReadOnly="True" />
<asp:TemplateField HeaderText="成绩">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Height="17px" Width="56px"><%# Eval("Score") %></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="Score" runat="server" Width="43px" Text='<%# Eval("Score") %>'></asp:TextBox>
</EditItemTemplate>
</asp:TemplateField>
<asp:CommandField HeaderText="编辑" ShowEditButton="True" />
<asp:CommandField ShowDeleteButton="True" />
</Columns>
<RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
<PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" HorizontalAlign="Center" />
<AlternatingRowStyle BackColor="#F7F7F7" />
</asp:GridView>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -