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

📄 teacherqueryelect.aspx

📁 学生网上选课系统,实现了学生的在线选课和教师课程的上传
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" Debug="true" CodeFile="teacherQueryElect.aspx.cs" Inherits="_Default" %>

<%@ Register Src="gonggao.ascx" TagName="gonggao" TagPrefix="uc1" %>

<!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>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
        <table style="background-image: url(Images/linkbg.png); width: 1024px; height: 568px; border-left-color: #33cc99; border-bottom-color: #33cc99; border-top-color: #33cc99; border-right-color: #33cc99;">
            <tr>
                <td align="center" colspan="3" style="background-image: url(Images/index_01.png);
                    height: 7px" valign="top">
                </td>
            </tr>
            <tr>
                <td align="center" rowspan="1" style="width: 101px; height: 7px" valign="top">
                    <asp:Button ID="Button4" runat="server" Text="上传课程" Width="79px" OnClick="Button4_Click" /></td>
                <td align="center" rowspan="1" style="border-left-color: #00cccc; border-bottom-color: #00cccc;
                    width: 100px; border-top-style: ridge; border-top-color: #00cccc; border-right-style: ridge;
                    border-left-style: ridge; height: 7px; text-align: left; border-right-color: #00cccc;
                    border-bottom-style: ridge" valign="top">
                    <table style="width: 373px; background-color: #cccccc">
                        <tr>
                            <td style="width: 55px">
                                姓名:</td>
                            <td style="width: 145px; text-align: left">
                                <asp:Label ID="teaName" runat="server" Text="Label" Width="130px" Font-Bold="True"></asp:Label></td>
                            <td style="width: 56px">
                                编号:</td>
                            <td style="width: 105px; text-align: left">
                                <asp:Label ID="teaID" runat="server" Text="Label" Width="91px"></asp:Label></td>
                        </tr>
                    </table>
                </td>
                <td align="center" style="width: 100px; height: 7px" valign="top">
                </td>
            </tr>
            <tr>
                <td align="center" rowspan="2" style="width: 101px; text-align: center;" valign="top">
                
                    <uc1:gonggao ID="Gonggao1" runat="server" />
                </td>
                <td align="center" rowspan="2" style="border-left-color: #00cccc; border-bottom-color: #00cccc;
                    width: 100px; border-top-style: ridge; border-top-color: #00cccc; border-right-style: ridge;
                    border-left-style: ridge; text-align: center; border-right-color: #00cccc; border-bottom-style: ridge"
                    valign="top">
        <table style="width: 501px; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid;">
            <tr>
                <td style="width: 933px; height: 25px;" >
                    <asp:Label ID="Label1" runat="server" Font-Bold="True" Text="课程名称:"></asp:Label>
                    <asp:DropDownList ID="ddlCource" runat="server" Width="154px" >
                    </asp:DropDownList></td>
                <td style="width: 1694px; height: 25px">
                   <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="查询" />
                    <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="报表" />
                    <asp:Button ID="xiugaiPwd" runat="server" OnClick="xiugaiPwd_Click" Text="修改密码" Width="70px" />
                    <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="退出" /></td>
            </tr>
            <tr>
                <td colspan="2" style="height: 174px">
                    <asp:GridView ID="GridView1" runat="server" Width="489px" CellPadding="2" ForeColor="Black" GridLines="None" AllowPaging="True" PageSize="10" AutoGenerateColumns="False" BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" >
                        <Columns>
                            <asp:BoundField DataField="stuID" HeaderText="学号" SortExpression="stuID" />
                            <asp:BoundField DataField="stuName" HeaderText="姓名" SortExpression="stuName"/>
                            <asp:BoundField DataField="stuGrade" HeaderText="年级" SortExpression="stuGrade" />
                            <asp:BoundField DataField="stuClass" HeaderText="班级" SortExpression="stuClass" />
                        </Columns>
                        <FooterStyle BackColor="Tan" />
                        <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                        <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="Tan" Font-Bold="True" />
                        <AlternatingRowStyle BackColor="PaleGoldenrod" />
                        <PagerTemplate>
                            <table>
                                <tr>
                                    <td>
                                        <asp:Label ID="LabelCurrentPage" runat="server" Font-Size="Small">当前页:<%# ((GridView)Container.NamingContainer).PageIndex + 1 %></asp:Label></td>
                                    <td>
                                        <asp:Label ID="LabelPageCount" runat="server" Font-Size="Small">总页数:<%# ((GridView)Container.NamingContainer).PageCount %></asp:Label></td>
                                    <td>
                                        <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page"
                                            Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>" Font-Size="Small">首页</asp:LinkButton></td>
                                    <td>
                                        <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev"
                                            CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>"
                                            Font-Size="Small">上一页</asp:LinkButton></td>
                                    <td>
                                        <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page"
                                            Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>"
                                            Font-Size="Small">下一页</asp:LinkButton></td>
                                    <td>
                                        <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                                            Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>"
                                            Font-Size="Small">尾页</asp:LinkButton></td>
                                </tr>
                            </table>
                        </PagerTemplate>
                    </asp:GridView>
                </td>
            </tr>
        </table>
                </td>
                <td align="center" style="width: 100px" valign="top">
                </td>
            </tr>
            <tr>
                <td align="center" style="width: 100px" valign="top">
                </td>
            </tr>
            <tr>
                <td align="center" style="width: 101px; height: 71px" valign="top">
                </td>
                <td align="center" style="background-image: url(Images/Index_30.gif); width: 100px;
                    height: 71px" valign="top">
                </td>
                <td align="center" style="width: 100px; height: 71px" valign="top">
                </td>
            </tr>
            <tr>
                <td align="center" style="width: 101px" valign="top">
                </td>
                <td align="center" style="width: 100px" valign="top">
                </td>
                <td align="center" style="width: 100px" valign="top">
                </td>
            </tr>
        </table>
    </form>
</body>
</html>

⌨️ 快捷键说明

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