<%@ Page Language="C#" AutoEventWireup="true" CodeFile="register.aspx.cs" Inherits="register" SmartNavigation="true" %>

<!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 id="Head1" runat="server">
    <title>用户注册</title>
    <link href="zcforums.css" rel="Stylesheet" type="text/css" />
    <script language="javascript">
    function minLength(oSrc,args)
    {
        args.IsValid=false;
        if(args.Value)
        {
            var length=args.Value.length;
            if(length>=6)
            {
                args.IsValid=true;
            }
        }
    }
    function Checknullornot(oSrc,args)
    {
        args.IsValid=false;
        if(args.Value)
        {
                        var length=args.Value.length;
            if(length>0)
            {
                args.IsValid=true;
            }
        }
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="800" style="background-color: #003399">&nbsp;</td>
    <td width="800" valign="top">
    <table width="800" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td colspan="2" height="60">
        <!--#include file="head.html"  -->
           </td>
      </tr>
     <tr>
        <td colspan="2" height="30" bgcolor="#0099FF">
           </td>
      </tr>
      <tr>
        <td height="40" align="right" background="images/reg_zc.gif" style="width: 166px">
            </td>
            <td width="635"></td>
      </tr>
      <tr>
        <td  class="table" height="40" style="width: 166px">
            用户名:</td>
        <td width="635" class="bottomcolor">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
        <asp:TextBox ID="UserName" runat="server" Width="170px"></asp:TextBox>*<asp:Button ID="CheckUserName" runat="server" Text="检测用户名" Width="78px" OnClick="CheckUserName_Click" />
            登录时的用户名，只可以是数字、字母、下划线．
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="UserName"
                ErrorMessage="此项为必填项！"></asp:RequiredFieldValidator></td>
      </tr>
      <tr>
        <td  class="table" height="40" style="width: 166px">
            密码:</td>
		<td class="bottomcolor">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
		<asp:TextBox ID="Password" TextMode="Password" runat="server" Width="170px"></asp:TextBox>*登录密码(6~18)。<asp:RequiredFieldValidator
            ID="RequiredFieldValidator2" runat="server" ErrorMessage="次项为必填项！" ControlToValidate="Password"></asp:RequiredFieldValidator>
                        <asp:CustomValidator ID="CustomValidator2" runat="server" ErrorMessage="密码不能少于六位" ControlToValidate="Password" ClientValidationFunction="minLength"></asp:CustomValidator>&nbsp;
		</td>
      </tr>
      <tr>
        <td class="table" style="width: 166px; height: 41px;">
            确认密码:</td>
		<td class="bottomcolor" style="height: 41px">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
		<asp:TextBox ID="PasswordConfirm" TextMode="Password" runat="server" Width="170px"></asp:TextBox>*确认你的密码。
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="两次输入的密码不相同"
                                            ControlToCompare="Password" ControlToValidate="PasswordConfirm"></asp:CompareValidator>
		</td>
      </tr>
      <tr>
        <td class="table1" height="40" style="width: 166px">
            电子邮箱:</td>
		<td class="bottomcolor">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
		<asp:TextBox ID="Email" runat="server" Width="170px"></asp:TextBox>*请输入您常用的邮箱<asp:RequiredFieldValidator
            ID="RequiredFieldValidator3" runat="server" ControlToValidate="Email" ErrorMessage="此项为必填项！"></asp:RequiredFieldValidator>
		<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="邮箱的格式不正确"
                                            ControlToValidate="Email" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>&nbsp;
		</td>
      </tr>
      <tr>
        <td colspan="2" style="height: 40px" class="table2"><asp:CheckBox ID="CheckBox1" runat="server" Checked="True" OnCheckedChanged="Submit_Click" AutoPostBack="True" />我已仔细阅读并接受的<a href="UserRegisterClaim.html">《基本法》</a></td>
      </tr>
      <tr>
        <td colspan="2" style="height: 40px" class="table2">
        <asp:Button ID="Register1" runat="server" Text="注册" Width="78px" OnClick="Register1_Click" />
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        <input id="Reset1" type="reset" value="重 填" style="width: 78px" />
        </td>
      </tr>
    </table>
    </td>
    <td style="background-color: #003399">&nbsp;</td>
  </tr>
</table>
    
    </div>
    </form>
</body>
</html>
 
