📄 admin.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="admin.aspx.cs" Inherits="teacher_admin" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table width="550">
<tr>
<td style="width: 2078px; height: 21px">
<asp:Label ID="Label1" runat="server" Text="查询条件" Font-Size="9pt"></asp:Label></td>
<td style="width: 120px; height: 21px">
<asp:DropDownList ID="ddlAdminName" runat="server" Width="107px" Font-Size="9pt">
<asp:ListItem Value="User_id">管理员名称</asp:ListItem>
</asp:DropDownList></td>
<td style="width: 1080px; height: 21px">
<asp:Label ID="Label2" runat="server" Text="关键字" Font-Size="9pt"></asp:Label></td>
<td style="width: 260px; height: 21px">
<asp:TextBox ID="txtSelect" runat="server" Width="100px" Font-Size="9pt"></asp:TextBox></td>
<td style="width: 279px; height: 21px">
<asp:Button ID="btnSelect" runat="server" Text="查询" OnClick="Button1_Click" Font-Size="9pt" /></td>
<td style="width: 1977px; height: 21px">
<asp:LinkButton ID="LinkButton10" runat="server" OnClick="LinkButton10_Click" Font-Size="9pt" Font-Underline="False">添加管理员</asp:LinkButton></td>
</tr>
</table>
<br />
<br />
<asp:GridView ID="gvAdminInfo" runat="server" AutoGenerateColumns="False" BackColor="White"
BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black"
GridLines="Horizontal" Width="550px" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="6" OnRowDeleting="GridView1_RowDeleting" Font-Size="9pt" HorizontalAlign="Center" DataKeyNames="User_id" OnRowEditing="gvAdminInfo_RowEditing">
<PagerSettings FirstPageText="第一页" LastPageText="最后一页" Mode="NextPreviousFirstLast"
NextPageText="下一页" PreviousPageText="上一页" />
<FooterStyle BackColor="#CCCC99" ForeColor="Black" />
<Columns>
<asp:BoundField DataField="User_id" HeaderText="管理员名称" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="User_Password" HeaderText="管理员密码" />
<asp:CommandField EditText="修改" HeaderText="修改" ShowEditButton="True" />
<asp:CommandField HeaderText="删除" ShowDeleteButton="True" >
<ControlStyle Font-Underline="False" />
</asp:CommandField>
</Columns>
<SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
<HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
</asp:GridView>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -