📄 a_students.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="A_Students.aspx.cs" Inherits="A_Students" Title="开放式实验室预约系统-学生管理" %>
<%@ Register Assembly="devBiz.Web.UI" Namespace="devBiz.Web.UI.WebControls" TagPrefix="dbz" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<fieldset id="fsList" runat="server" style="text-align: left">
<legend runat="server" id="legendList">学生列表</legend>
<div align="left">
<asp:Label ID="Label1" runat="server" Text="班级"></asp:Label>
<asp:DropDownList ID="ddlClass" runat="server" Width="133px" AutoPostBack="True" OnSelectedIndexChanged="ddlClass_SelectedIndexChanged">
</asp:DropDownList>
</div>
<div align="left">
<asp:Button ID="btnNewStudent" runat="server" Text="新增" Width="100px" OnClick="btnNewBatch_Click"/></div>
<asp:GridView ID="StudentsList" runat="server" OnPageIndexChanging="BatchList_PageIndexChanging" OnRowCommand="BatchList_RowCommand" OnRowCreated="BatchList_RowCreated" OnRowDataBound="BatchList_RowDataBound" OnSorting="BatchList_Sorting" AutoGenerateColumns="False" AllowPaging="True" >
<Columns>
<asp:BoundField DataField="ID" HeaderText="ID">
<ItemStyle Width="20px" />
</asp:BoundField>
<asp:ButtonField HeaderText="编辑" Text="编辑" CommandName="StudentEdit" ButtonType="Button" >
<ItemStyle Width="40px" />
</asp:ButtonField>
<asp:BoundField DataField="Name" HeaderText="姓名" />
<asp:BoundField DataField="Class" HeaderText="班级" />
<asp:BoundField DataField="Sex" HeaderText="性别" />
<asp:BoundField DataField="StudyID" HeaderText="学号" />
</Columns>
</asp:GridView>
</fieldset>
<br />
<fieldset id="fsItem" runat="server" style="text-align: left">
<legend id="legendItem" runat="server">Edit</legend>
<table id="Table1" cellpadding="0" cellspacing="0" width="80%" border="0" runat="server">
<tr>
<td style="width: 145px; height: 24px">
姓名</td>
<td style="width: 501px; height: 24px; text-align: left;">
<asp:TextBox ID="tbxName" runat="server"></asp:TextBox><span style="color: red">* </span>
</td>
</tr>
<tr>
<td style="width: 145px; height: 24px">
班级</td>
<td style="width: 501px; height: 24px; text-align: left;">
<dbz:EditableDropDown ID="eddClasses" runat="server" Width="168px">
</dbz:EditableDropDown>
<span style="color: red">* </span>
</td>
</tr>
<tr>
<td style="width: 145px; height: 24px;">
性别
</td>
<td style="width: 501px; text-align: left; height: 24px;">
<asp:DropDownList ID="ddlSex" runat="server">
<asp:ListItem>男</asp:ListItem>
<asp:ListItem>女</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td style="width: 145px">
学号
</td>
<td style="width: 501px; text-align: left;">
<asp:TextBox ID="tbxStudyID" runat="server"></asp:TextBox><span style="color: red">* </span>
</td>
</tr>
<tr>
<td style="width: 145px">
密码
</td>
<td style="width: 501px; text-align: left;">
<asp:TextBox ID="tbxPassword" runat="server" TextMode="Password" Width="154px"></asp:TextBox><span style="color: red">* </span>
</td>
</tr>
<tr>
<td colspan="2" align="center" style="height: 24px; text-align: left">
<asp:Label ID="lbMsg" runat="server" ForeColor="Red" Text="Label"></asp:Label><br />
<asp:Button id="btn_Save" runat="server" Text=" 保存 " CssClass="button" ToolTip="保存当前用户的更改" Width="100px" OnClick="btn_Save_Click"></asp:Button><asp:Button id="btnDel" runat="server" Text=" 删除 " CssClass="button" ToolTip="删除当前记录" OnClick="btnDel_Click"></asp:Button>
<asp:TextBox ID="tbxKeyID" runat="server" Visible="false" Width="89px">-1</asp:TextBox></td>
</tr>
</table>
</fieldset>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -