XDF/Admin/Student.aspx

(完整代码) 3KB

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Student.aspx.cs" Inherits="XDF.Admin.Student" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style4
        {
            font-size: large;
            font-family: 隶书;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <span class="style4">课程号:</span><asp:Label ID="LabelCourseID" runat="server" 
        style="font-family: 隶书"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="ButtonReturn" runat="server" onclick="ButtonReturn_Click" 
        style="font-size: large; font-family: 隶书" Text="返回" />
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSource2" 
        ForeColor="#333333" GridLines="None" style="text-align: center" 
        Width="1300px" onrowdatabound="GridView1_RowDataBound">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="StuID" HeaderText="学号" SortExpression="StuID" />
            <asp:BoundField DataField="StuName" HeaderText="学生姓名" 
                SortExpression="StuName" />
            <asp:BoundField DataField="CourseID" HeaderText="课程号" 
                SortExpression="CourseID" />
            <asp:BoundField DataField="Sex" HeaderText="性别" SortExpression="Sex" />
            <asp:BoundField DataField="Grade" HeaderText="年级" SortExpression="Grade" />
            <asp:BoundField DataField="Email" HeaderText="电子邮箱" SortExpression="Email" />
            <asp:BoundField DataField="Phone" HeaderText="电话号码" SortExpression="Phone" />
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:XDF %>" SelectCommand="SELECT* 
FROM [Order]  LEFT JOIN [Student]  ON  [Order].StuID=[Student].StuID
WHERE ( [Order].State='有效' AND [Order].CourseID=@CourseID)">
        <SelectParameters>
            <asp:SessionParameter Name="CourseID" SessionField="CourseID" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。