⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 query_delgrade.aspx

📁 项目开发完整系统
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Query_DelGrade.aspx.cs" Inherits="成绩管理_Query_DelGrade" %>

<!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="~/css/mm.css" rel="stylesheet" type="text/css" />
</head>
<body >
    <form id="form1" runat="server">
    <div style="text-align: center">
        <table style="width: 695px; height: 200px">
            <tr>
                <td colspan="3" style="height: 1px; width: 720px;">
                </td>
            </tr>
            <tr>
                <td colspan="3" rowspan="2" style="width: 720px; text-align: center; height: 56px;">
                    查询/删除成绩
                    <hr />
                </td>
            </tr>
            <tr>
            </tr>
            <tr>
                <td colspan="4" rowspan="1" style="width: 867px; height: 26px; text-align: center">
                    请输入学号:<asp:TextBox ID="TBxQuery" runat="server"></asp:TextBox><asp:Button ID="BtnQuery" runat="server" Text="查询" OnClick="BtnQuery_Click"  />
                    &nbsp; &nbsp;&nbsp;
                    <asp:Button ID="BtnDel" runat="server" OnClick="BtnDel_Click" Text="删除" />
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;
                    &nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="3" style="height: 22px; width: 720px; text-align: center;">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource_course_score">
                        <Columns>
                            <asp:BoundField DataField="student_ID" HeaderText="学号" SortExpression="student_ID" />
                            <asp:BoundField DataField="course_name" HeaderText="课程名" SortExpression="course_name" />
                            <asp:BoundField DataField="score" HeaderText="分数" SortExpression="score" />
                        </Columns>
                    </asp:GridView>
                    &nbsp;&nbsp;
                    <asp:SqlDataSource ID="SqlDataSource_course_score" runat="server" ConnectionString="<%$ ConnectionStrings:XTeamConnectionString %>"
                        SelectCommand="SELECT DISTINCT [course_name], [score], [student_ID] FROM [course_name_course] WHERE ([student_ID] = @student_ID)">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="TBxQuery" DefaultValue="22" Name="student_ID" PropertyName="Text"
                                Type="Int32" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td colspan="3" style="height: 8px; width: 720px; text-align: center;">
                    <hr />
                    &nbsp;</td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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