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

📄 admin_login.aspx

📁 本代码相互要实现试问系统的查询
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Admin_Login.aspx.cs" Inherits="Admin_Admin_Login" %>

<!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 style="text-align: center" align="center">
        <table width=500 height="600" >
                <tr>
                    <td align="center" valign="top" style="width: 496px">
                        <asp:Panel ID="panel1" runat="server" Width="450px">
                        <table>
                        <tr>
                        <td background="../Images/Admin_Default/01.jpg" height=100 width=450></td></tr></table>
                            <table style="width: 105%; height: 94%">
                                <tr>
                                    <td align=right style="width:35%" height=20>
                                        用户名:
                                      </td>
                                    <td align="left" >
                                        <asp:TextBox ID="txtUserName" runat="server" Width="50%" MaxLength="50" CssClass="inputbg"></asp:TextBox><asp:RequiredFieldValidator ID="rfv1" runat="server" ErrorMessage="*" ControlToValidate="txtUserName"></asp:RequiredFieldValidator></td>
                                </tr>
                                <tr>
                                    <td align=right>
                                        密 码:</td>
                                    <td style="width: 82px" align="left" >
                                        <asp:TextBox ID="txtPassword" runat="server" Width="80%" MaxLength="50" CssClass="inputbg"
                                            TextMode="Password"></asp:TextBox><asp:RequiredFieldValidator ID="rfv2" runat="server" ErrorMessage="*"
                                            ControlToValidate="txtPassword"></asp:RequiredFieldValidator></td>
                                </tr>
                                <tr>
                                    <td align=right>
                                        登录保留:</td>
                                    <td style="width: 82px" >
                                        <asp:DropDownList ID="drpKeepLogin" runat="server">
                                            <asp:ListItem Selected="True" Value="0">不保留</asp:ListItem>
                                            <asp:ListItem Value="1">保留一天</asp:ListItem>
                                            <asp:ListItem Value="2">保留一周</asp:ListItem>
                                            <asp:ListItem Value="3">保留一月</asp:ListItem>
                                            <asp:ListItem Value="4">保留一年</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                <td colspan="2" style="height: 2px">&nbsp;</td>
                                </tr>
                                <tr>
                                    <td align="center" valign="bottom" colspan="2" style="height: 9px">
                                        <asp:Button ID="btnLogin" runat="server" Text="登录" OnClick="btnLogin_Click"></asp:Button>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                        <asp:Panel ID="panel2" runat="server" Visible="false" Width="450px">
                            <table align="center" height="100%" width=100%>
                                <tr>
                                    <td style="width: 128px; height: 18px">
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 128px; height: 18px;">
                                        您好 ,<asp:Label ID="lblUserName" runat="server" Width="70px"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td style="width: 128px">
                                        <a title="您添加的新闻" href=""
                                            target="_blank"></a></td>
                                </tr>
                                <tr>
                                    <td style="width: 128px">
                                        <asp:Panel ID="AdminLoginPan" runat="server">
                                            <a href="Index.htm" target="_parent">进入管理</a>
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 128px; height: 10px;" align="left" valign="top">
                                        <a href="Admin_MemberRegister.aspx" target="_parent">修改资料</a>&nbsp;&nbsp;<asp:LinkButton
                                            ID="LinkButton1" runat="server" Height="12px" OnClick="LinkButton1_Click">退出登陆</asp:LinkButton></td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </td>
                </tr>
            </table>
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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