<%@ Page Language="C#" AutoEventWireup="true" CodeFile="chatlogin.aspx.cs" Inherits="chatlogin" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>在线聊天室</title>
</head>
<body>
    <form id="form1" runat="server">
    <div align="center">
        <table cellpadding="0" cellspacing="0" 
            style="border: 2px double #FF9900; width: 400px; height: 260px;">
            <tr>
                <td align="center" colspan="2" 
                    style="background-color: #FF9900; color: #FFFFFF; font-size: 26px">
                    聊天室登录</td>
            </tr>
            <tr>
                <td align="left" colspan="2" style="background-color: #CCCCCC">
                    欢迎访问聊天室，当前在线人数：<asp:Label ID="lblnum" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    昵称：</td>
                <td align="left">
                    <asp:TextBox ID="txtname" runat="server" Width="84px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rqcname" runat="server" 
                        ControlToValidate="txtname" ErrorMessage="用户名必须输入">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right">
                    密码：</td>
                <td align="left">
                    <asp:TextBox ID="txtpwd" runat="server" Width="139px" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rqcpwd" runat="server" 
                        ControlToValidate="txtpwd" ErrorMessage="密码必须输入">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="2">
                    <asp:CheckBox ID="ckbrem" runat="server" Text="记录我的信息" />
                </td>
            </tr>
            <tr>
                <td align="center" colspan="2">
                    <asp:Button ID="btnlogin" runat="server" Text="登录" onclick="btnlogin_Click" />
&nbsp;<asp:Button ID="btncancel" runat="server" Text="取消" onclick="btncancel_Click" 
                        style="height: 26px" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
