<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Regist.aspx.cs" Inherits="WebApplication1.Regist" %>

<!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>
    <style type="text/css">
        #body { text-align:center; }
        #container { margin:15% 35% 20% 35%; background:#a97be3; }
        b.rtop,b.rbottom { display:block; background:#fff; }
        b.rtop b, b.rbottom b { display:block; height:2px; overflow:hidden; background:#a97be3; }
        b.r1 { margin: 0 5px; }
        b.r2 { margin: 0 3px; }
        b.r3 { margin: 0 2px; }
        b.r4 { margin: 0 1px; height:2px; }
        h2,p { padding:10px; }
        h2 { text-align:center; }
    </style>
    <script type="text/javascript" language="javascript">
        function Btn_Check()
        {
           var T_User=document.getElementById("Text_User");
           var T_Paw=document.getElementById("Text_Pwd");
           if(T_User.value==""||T_Paw.value==""||T_User.value==null||T_Paw.value==null)
           {
                alert("用户名或密码不能为空！");
                return false;
           }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="container">
        <b class="rtop">
            <b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b>
        </b>
            <table align="center">
        <tr>
            <td align="center" colspan="2"><font size="14">注册</font></td>
        </tr>
        <tr>
            <td width="100px" align="right">用户名:</td>
            <td width="100px" align="left"><asp:TextBox ID="Text_User" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td width="100px" align="right">密&nbsp;&nbsp;&nbsp; 码:</td>
            <td width="100px" align="left"><asp:TextBox ID="Text_Pwd" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="center" colspan="2"><asp:Button ID="Btn_Zhuce" runat="server" Text="注册" OnClientClick="return Btn_Check()" 
                    onclick="Btn_Zhuce_Click" />&nbsp;</td>
        </tr>
        <tr>
            <td align="right" colspan="2"><a href="Login.aspx" style=" font-size:small;">去登陆</a></td>
        </tr>
    </table>
        <b class="rbottom">
            <b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b>
        </b>
    </div>
    </form>
</body>
</html>
