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

📄 js.aspx

📁 一个简单的个人课程管理系统 主要功能有登陆 个人课程查看 添加 删除等
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="JS.aspx.cs" Inherits="_Default" %>

<!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>
        <table style="border-right: #999999 thin solid; border-top: #999999 thin solid; background-attachment: fixed;
            left: 18%; background-image: url(img/backgroud1.jpg); border-left: #999999 thin solid;
            width: 534px; border-bottom: #999999 thin solid; position: absolute; top: 20%;
            height: 266px; z-index: 105;">
            <tr>
                <td style="background-image: none; width: 40px; height: 267px">
                    <asp:Button ID="Button1" runat="server" BackColor="Control" BorderStyle="Outset"
                        OnClick="Button1_Click" Style="z-index: 100; left: 6px; position: absolute;
                        top: 95px" Text="查询个人课程" Width="90px" ForeColor="SeaGreen" />
                    &nbsp;&nbsp;&nbsp;
                    <asp:Button ID="Button2" runat="server" BackColor="Control" Style="z-index: 101;
                        left: 6px; position: absolute; top: 203px" Text="查询个人信息" Width="90px" OnClick="Button2_Click" ForeColor="SeaGreen" />
                    <asp:Button ID="Button3" runat="server" BackColor="Control" Style="z-index: 103;
                        left: 6px; position: absolute; top: 147px" Text="查询所有课程" Width="90px" OnClick="Button3_Click1" ForeColor="SeaGreen" />
                </td>
                <td style="background-image: none; width: 100px; height: 267px">
                    <asp:Label ID="Label1" runat="server" ForeColor="White" Style="z-index: 100; left: 308px;
                        position: absolute; top: 37px" Text="教师界面" Width="70px"></asp:Label>
                    &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None"
                        Height="178px" Style="z-index: 102; left: 106px; position: absolute; top: 65px"
                        Visible="False" Width="405px">
                        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:BoundField DataField="Uaccouts" HeaderText="用户号" ReadOnly="True" SortExpression="Uaccouts" />
                            <asp:BoundField DataField="Upassword" HeaderText="密码" SortExpression="Upassword" />
                            <asp:BoundField DataField="Uname" HeaderText="用户名" SortExpression="Uname" />
                            <asp:BoundField DataField="Uacademy" HeaderText="学院" SortExpression="Uacademy" />
                            <asp:BoundField DataField="Usort" HeaderText="用户类别" SortExpression="Usort" />
                        </Columns>
                        <RowStyle BackColor="#E3EAEB" />
                        <EditRowStyle BackColor="#7C6F57" />
                        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:courseConnectionString %>"
                        SelectCommand="SELECT * FROM [UserInformation] WHERE ([Uaccouts] = @Uaccouts)">
                        <SelectParameters>
                            <asp:SessionParameter Name="Uaccouts" SessionField="Uaccouts" Type="String" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </td>
            </tr>
        </table>
        <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" CellPadding="4"
            DataKeyNames="UCnumber" DataSourceID="SqlDataSource3" ForeColor="#333333" GridLines="None"
            Height="174px" Style="z-index: 100; left: 269px; position: absolute; top: 451px"
            Visible="False" Width="399px">
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <Columns>
                <asp:BoundField DataField="UCnumber" HeaderText="编号" ReadOnly="True" SortExpression="UCnumber" />
                <asp:BoundField DataField="Cnumber" HeaderText="课程号" SortExpression="Cnumber" />
                <asp:BoundField DataField="Uaccouts" HeaderText="用户名" SortExpression="Uaccouts" />
                <asp:BoundField DataField="Uname" HeaderText="用户名" SortExpression="Uname" />
                <asp:BoundField DataField="Cname" HeaderText="课程名" SortExpression="Cname" />
            </Columns>
            <RowStyle BackColor="#E3EAEB" />
            <EditRowStyle BackColor="#7C6F57" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:courseConnectionString3 %>"
            SelectCommand="SELECT * FROM [UserCourseInformation] WHERE ([Uaccouts] = @Uaccouts)">
            <SelectParameters>
                <asp:SessionParameter Name="Uaccouts" SessionField="Uaccouts" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" CellPadding="4"
            DataKeyNames="Cnumber" DataSourceID="SqlDataSource2" ForeColor="#333333" GridLines="None"
            Height="195px" Style="z-index: 101; left: 264px; position: absolute; top: 442px"
            Visible="False" Width="508px">
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <Columns>
                <asp:BoundField DataField="Cnumber" HeaderText="课程号" ReadOnly="True" SortExpression="Cnumber" />
                <asp:BoundField DataField="Cname" HeaderText="课程名" SortExpression="Cname" />
                <asp:BoundField DataField="Cteacher" HeaderText="教师" SortExpression="Cteacher" />
                <asp:BoundField DataField="Ccredit" HeaderText="学分" SortExpression="Ccredit" />
                <asp:BoundField DataField="Ctime" HeaderText="上课时间" SortExpression="Ctime" />
                <asp:BoundField DataField="Cclassrom" HeaderText="教室" SortExpression="Cclassrom" />
            </Columns>
            <RowStyle BackColor="#E3EAEB" />
            <EditRowStyle BackColor="#7C6F57" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:courseConnectionString2 %>"
            SelectCommand="SELECT * FROM [CourseInformation]"></asp:SqlDataSource>
        <asp:Label ID="Label2" runat="server" Font-Names="楷体_GB2312" Font-Size="X-Large"
            ForeColor="#8080FF" Style="z-index: 102; left: 373px; position: absolute; top: 74px"
            Text="欢迎来到个人课程管理系统" Width="301px"></asp:Label>
    
    </div>
        <asp:HyperLink ID="HyperLink1" runat="server" ForeColor="Desktop" NavigateUrl="~/SY.aspx"
            Style="z-index: 103; left: 722px; position: absolute; top: 132px">退出系统</asp:HyperLink>
        <asp:HyperLink ID="HyperLink2" runat="server" ForeColor="Desktop" NavigateUrl="~/XG.aspx"
            Style="z-index: 106; left: 605px; position: absolute; top: 132px">修改密码</asp:HyperLink>
    </form>
</body>
</html>

⌨️ 快捷键说明

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