students.aspx

来自「本系统内置的测评模块可以根据学生的学习成绩以及往日的综合表现对学生的综合素质分进」· ASPX 代码 · 共 79 行

ASPX
79
字号
<%@ Page AutoEventWireup="false" Inherits="px.students" %>

<!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>
    <link href="../App_Themes/default/admincp.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <br />
        <table border="0" cellpadding="0" cellspacing="0" class="guide" width="100%">
            <tbody>
                <tr>
                    <td style="height: 28px">
                        <a href="#">系统首页</a> &gt;&gt; 学生信息管理</td>
                </tr>
            </tbody>
        </table>
    
    </div>
        <br />
        <table border="0" cellpadding="0" cellspacing="0" class="guide" width="100%">
            <tbody>
                <tr>
                    <td style="width: 501px">
                        学院列表:<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True">
                        </asp:DropDownList>
                        入学年份:<asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True">
                        </asp:DropDownList>
                        班级列表:<asp:DropDownList ID="DropDownList3" runat="server" AutoPostBack="True">
                        </asp:DropDownList></td>
                    <td>
                        搜索学生:<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        <asp:Button ID="Button1" runat="server" Text="确定" /></td>
                </tr>
            </tbody>
        </table>
        <br />
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            BackImageUrl="~/images/bg_list.gif" CssClass="tableborder" DataKeyNames="id"
            GridLines="None" PageSize="20" Width="100%" AllowSorting="True">
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <Columns>
                <asp:BoundField DataField="id" HeaderText="数据库编号" ReadOnly="True">
                    <ControlStyle Width="10%" />
                    <HeaderStyle Width="10%" />
                </asp:BoundField>
                <asp:BoundField DataField="class" HeaderText="班级" />
                <asp:BoundField DataField="student_id" HeaderText="学号" ReadOnly="True" />
                <asp:BoundField DataField="name" HeaderText="真实姓名" />
                <asp:TemplateField HeaderText="性别">
                    <ItemTemplate><%#xb(Container.DataItem("sex"))%></ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="操作" ShowHeader="False">
                    <ControlStyle Width="20%" />
                    <HeaderStyle Width="20%" />
                    <ItemTemplate>
                        <a href='editstu.aspx?id=<%#container.dataitem("id") %>'>查看编辑</a>、<a href="delstu.aspx?id=<%#container.dataitem("id") %>" onclick="return confirm('删除请谨慎操作!')">删除</a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <RowStyle BackColor="#EFF3FB" CssClass="altbg2" />
            <EmptyDataTemplate>
                暂时没有数据,请先新建。
            </EmptyDataTemplate>
            <EditRowStyle BackColor="#2461BF" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#2461BF" ForeColor="Black" HorizontalAlign="Center" />
            <HeaderStyle CssClass="header" ForeColor="White" Height="30px" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>

    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?