📄 student.aspx
字号:
<%@ Page language="c#" Inherits="sms.student" CodeFile="student.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>student</title>
<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body>
<form method="post" runat="server">
<TABLE id="Table1" style="HEIGHT: 300px" cellSpacing="1" cellPadding="1" width="96%" border="1" align="center">
<TR>
<TD bgColor="#6699ff" colSpan="2" style="HEIGHT: 30px"><FONT face="宋体" size="6"><STRONG>学生信息</STRONG></FONT></TD>
</TR>
<TR>
<TD style="WIDTH: 118px; HEIGHT: 200px">
<P><FONT face="宋体"></FONT></P>
<P>
<asp:LinkButton id="Lbtn_addclass" runat="server" onclick="Lbtn_addclass_Click">班级管理</asp:LinkButton></P>
<P>
<asp:LinkButton id="Lbtn_addteacher" runat="server" onclick="Lbtn_addteacher_Click">教师管理</asp:LinkButton></P>
<FONT face="宋体"></FONT>
<P>
<asp:linkbutton id="Lbtn_course" runat="server" DESIGNTIMEDRAGDROP="75" onclick="Lbtn_course_Click">课程管理</asp:linkbutton></P>
<P>
<asp:linkbutton id="Lbtn_sortcourse" runat="server" DESIGNTIMEDRAGDROP="77" onclick="Lbtn_sortcourse_Click">学生选课管理</asp:linkbutton></P>
<FONT face="宋体">
<P>
<asp:linkbutton id="Lbtn_grade" runat="server" DESIGNTIMEDRAGDROP="77" onclick="Lbtn_grade_Click">成绩管理</asp:linkbutton></P>
</FONT>
<P>
<asp:button id="Btn_search" runat="server" Text="查询学生" onclick="Btn_search_Click"></asp:button></P>
<asp:panel id="Pnl_sort" Visible="False" Runat="server" Width="113px">学号:
<asp:TextBox id="Tbx_sortid" Width="54px" Runat="server"></asp:TextBox>
<P>姓名:
<asp:TextBox id="Tbx_name" Width="54px" Runat="server"></asp:TextBox></P>
<P>
<asp:Button id="Btn_ok" Text="确定" Runat="server" onclick="Btn_ok_Click"></asp:Button></P>
</asp:panel></TD>
<TD style="HEIGHT: 200px" vAlign="top" ><FONT face="宋体"> <P align="center">
<asp:GridView ID="GridView1" runat="server" DataKeyNames="student_id" AutoGenerateColumns="False" OnRowDeleting="GridView1_RowDeleting" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating">
<Columns>
<asp:BoundField DataField="Student_id" HeaderText="学号" SortExpression="Student_id" />
<asp:BoundField DataField="Student_name" HeaderText="姓名" SortExpression="Student_name" />
<asp:BoundField DataField="Student_sex" HeaderText="性别" SortExpression="Student_sex" />
<asp:BoundField DataField="Student_nation" HeaderText="民族" SortExpression="Student_nation" />
<asp:BoundField DataField="Student_birthday" HeaderText="出生日期" SortExpression="Student_birthday" />
<asp:BoundField DataField="Sturdent_time" HeaderText="入学时间" SortExpression="Student_time" />
<asp:BoundField DataField="Student_classid" HeaderText="班级" SortExpression="Student_classid" />
<asp:BoundField DataField="Student_home" HeaderText="生源" SortExpression="Student_home" />
<asp:BoundField DataField="Student_else" HeaderText="备注" SortExpression="Student_else" />
<asp:CommandField ShowEditButton="True" >
<ItemStyle Wrap="False" />
</asp:CommandField>
<asp:TemplateField ShowHeader="False">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
OnClientClick='return confirm("确定要删除此行数据?");' Text="删除"></asp:LinkButton>
</ItemTemplate>
<ItemStyle Wrap="False" />
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:LinkButton id="Lbtn_add" runat="server" Font-Italic="True" onclick="Lbtn_add_Click">添加新生</asp:LinkButton></P>
</FONT>
</TD>
</TR>
<TR>
<TD colSpan="2" bgcolor="#6699ff"><FONT face="宋体">
<asp:button id="Btn_all" runat="server" Text="显示所有信息" onclick="Btn_all_Click"></asp:button>
<asp:button id="Btn_exit" runat="server" Text="退出" onclick="Btn_exit_Click"></asp:button>
<asp:label id="Lbl_note" runat="server"></asp:label>
</FONT>
</TD>
</TR>
</TABLE>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -