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

📄 login.aspx

📁 用c#实现的BBS论坛。主要提供了三种角色:游客(没有注册的用户)、已经注册的用户和后台管理员。当游客进入论坛之后
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="BackDesk_Login_Login" %>

<%@ Register Src="BBSFooter.ascx" TagName="BBSFooter" TagPrefix="uc2" %>

<%@ Register Src="BBSHeader.ascx" TagName="BBSHeader" TagPrefix="uc3" %>

<%@ Register Src="../../UserControl/BBSHeader.ascx" TagName="BBSHeader" 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>
        <table style="width: 755px;" align="center" cellpadding="0" cellspacing="0">
         <tr>
                <td style="width: 755px; text-align: center; height: 138px;">
                    <uc3:BBSHeader ID="BBSHeader1" runat="server" />
                    </td>
            </tr>
        <tr>
                <td style="width: 755px; color: #ff3300; text-align: center; background-image: url(../../Image/背景图1.jpg); height: 14px;">
                    <br />
                    <asp:Label ID="labLogin" runat="server" Text="登录社区" Width="124px" Font-Size="9pt"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 755px; background-image: url(../../Image/背景图2.jpg); vertical-align: top; height: 365px;">
                    <br />
                    <table align="center" cellpadding="0" cellspacing="0">
                        <tr>
                            <td style="width: 107px; text-align: center;">
                    <asp:Label ID="labUserID" runat="server" Text="用户ID" Font-Size="9pt" Width="38px"></asp:Label></td>
                            <td style="width: 188px; text-align: center;">
                    <asp:TextBox ID="txtUserID" runat="server" Font-Size="9pt"></asp:TextBox></td>
                            <td style="width: 2px">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 107px; text-align: center;">
                    <asp:Label ID="labUserName" runat="server" Text="用户名" Font-Size="9pt" Width="38px"></asp:Label></td>
                            <td style="width: 188px; text-align: center;">
                    <asp:TextBox ID="txtUserName" runat="server" Font-Size="9pt"></asp:TextBox></td>
                            <td style="width: 2px">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 107px; text-align: center;">
        <asp:Label ID="labPwd" runat="server" Text="密   码" Font-Size="9pt" Width="38px"></asp:Label></td>
                            <td style="width: 188px; text-align: center;">
                    <asp:TextBox ID="txtPassword" runat="server" Font-Size="9pt" TextMode="Password" Width="128px"></asp:TextBox></td>
                            <td style="width: 2px">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 107px; text-align: center;">
        <asp:Label ID="labCode" runat="server" Text="验证码" Font-Size="9pt" Width="38px"></asp:Label></td>
                            <td style="width: 188px; text-align: center;">
                    <asp:TextBox ID="txtValidateCode" runat="server" Font-Size="9pt"></asp:TextBox></td>
                            <td style="width: 2px">
                    <asp:Label ID="labValidateCode" runat="server" BackColor="#FFC0C0" Width="44px" Font-Size="9pt"></asp:Label></td>
                        </tr>
                        <tr>
                            <td style="width: 107px; text-align: center;">
                    <asp:CheckBox ID="cbAdminLogin" runat="server" Text="管理员登录" Font-Size="9pt" /></td>
                            <td style="width: 188px; text-align: center;">
                    <asp:Button ID="btnLogin" runat="server" Text="登录" OnClick="btnLogin_Click" Font-Size="9pt" />
                                &nbsp;&nbsp;
                    <asp:Button ID="btnCancel" runat="server" Text="取消" Font-Size="9pt" OnClick="btnCancel_Click" /></td>
                            <td style="width: 2px">
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
             <tr>
                <td style="width: 755px; text-align: center; height: 74px;">
                    <uc2:BBSFooter ID="BBSFooter1" runat="server" />
                </td>
            </tr>
        </table>
                    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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