<%@ Page Language="C#" MasterPageFile="~/Includes/Main.master" AutoEventWireup="true" CodeFile="Member_Register.aspx.cs" Inherits="Member_Register" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script language="javascript" type="text/javascript" src="images/js/Common.js"></script>
<script language="javascript" type="text/javascript" src="images/js/BLL.js"></script>
<table width="99%" align="center" border="0" cellspacing="0" cellpadding="0"  bordercolor="#cccccc" style="font-size:12px">
        <tr>
          <td bgcolor="#ffffff" bordercolor="#ffffff">
              
             <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td align="center"><p><font color="#ff3300"><b>请您详细填写您的信息<br>
                  您的个人信息对外保密。(带 <font color=red>* </font> 号为必填项) </b></font></p>
                    
                      <table width="99%" border="0" cellpadding="2" cellspacing="1" bgcolor="#e1e1e1" align="center">
                        <tr>
                          <td height=15 colspan=3 bgcolor="#f1f1f1"><font style="font-weight:bold" color="#ff3300">用户注册</font> </td>
                        </tr>
                        <tr bgcolor="#ffffff">
                          <td align="center" style="width: 63px">用 户 名：</td>
                          <td align="left">
                               <font style="font-weight:bold" color="#ff3300">*</font> 
                              <input id="txtUserName" type="text" size="18" name="inputname" />&nbsp;
    <%--<asp:textbox ID="txtUserName" runat="server"></asp:textbox>--%>
        <input id="BtnCheck" type="button" value="检查用户名" onclick='checkName("txtUserName")' />
                              </td>

                        </tr>
                        <tr bgcolor="#ffffff">
                          <td align="center" style="width: 63px">密　　码：</td>
                          <td align="left">
                              <font style="font-weight:bold" color="#ff3300">*</font>
                              <asp:TextBox ID="passwordTb" runat="server" TextMode="Password"></asp:TextBox>
                              <asp:RequiredFieldValidator ControlToValidate="passwordTb" ID="passwordRFV" Display="dynamic" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator></td>

                        </tr>
                        <tr bgcolor="#ffffff">
                          <td align="center" style="width: 63px">确认密码：</td>
                          <td align="left">
                               <font style="font-weight:bold" color="#ff3300">*</font>
                              <asp:TextBox ID="repasswordTb" runat="server" TextMode="Password"></asp:TextBox>
                              <asp:CompareValidator ID="comparepassword" Display="Dynamic" ControlToCompare="passwordTb" ControlToValidate="repasswordTb" runat="server" ErrorMessage="两次输入密码不一致"></asp:CompareValidator></td>
                        </tr>
                        <tr bgcolor="#ffffff">
                          <td align="center" style="width: 63px">电子邮箱：</td>
                          <td align="left">
                               <font style="font-weight:bold" color="#ff3300">*</font>
                              <asp:TextBox ID="emailTb" runat="server"></asp:TextBox>
                              <asp:RequiredFieldValidator ID="emailRFV" Display="dynamic" ControlToValidate="emailTb" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                              <asp:RegularExpressionValidator ID="emailREV" Display="dynamic" ControlToValidate="emailTb" runat="server" ErrorMessage="电子邮箱格式错误" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>

                        </tr>
                        <tr bgcolor="#ffffff">
                          <td align="center" style="width: 63px">密码问题：</td>
                          <td align="left">
                             <font style="font-weight:bold" color="#ff3300">*</font>
                             <asp:TextBox ID="questionTb" runat="server"></asp:TextBox>
                              <asp:RequiredFieldValidator ID="questionRFV" Display="dynamic" ControlToValidate="questionTb" runat="server" ErrorMessage="请输入密码问题"></asp:RequiredFieldValidator></td>

                        </tr>
                        <tr bgcolor="#ffffff">
                          <td align="center" style="width: 63px">问题答案：</td>
                          <td align="left">
                              <font style="font-weight:bold" color="#ff3300">*</font>
                             <asp:TextBox ID="answerTb" runat="server"></asp:TextBox>
                              <asp:RequiredFieldValidator ID="answerRFV" Display="dynamic" ControlToValidate="answerTb" runat="server" ErrorMessage="请输入问题答案"></asp:RequiredFieldValidator></td>

                        </tr>             
              </table>
                  <div id="infodiv" style="color:Red; display:none">
                      <img src="images/busy.gif" />
                      数据加载中....
                  </div>
              </td>
              </tr>
              </table>
              </td>
              </tr>
              <tr>
                 <td align=center>
                 <br />
                     <asp:Button ID="registBt" runat="server" Text="注册新用户" OnClick="registBt_Click" />
                    <input type="button" value="返回首页" onclick="window.location.href='Default.aspx'" />
                 </td>
              </tr>
              </table>
</asp:Content>

