<%@ Page Language="C#" MasterPageFile="~/UI.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="LZBS.Web.Register" Title="会员注册" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="margin-top:50px; text-align:left;">
<div style="background-image: url('Images/title_bg.gif'); height: 27px; font-size: large; width:891px;">注册账号</div>
    <div style="border: thin solid #3399FF; width:888px;">
&nbsp;&nbsp;&nbsp;&nbsp;账号 ：
    <asp:TextBox ID="txtMemberID" runat="server" MaxLength="50"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="txtMemberID" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
        <asp:CustomValidator ID="CustomValidator1" runat="server" 
            ControlToValidate="txtMemberID" Display="Dynamic" ErrorMessage="该账号已被注册" 
            onservervalidate="CustomValidator1_ServerValidate"></asp:CustomValidator>
    <br />
    <br />
&nbsp;&nbsp;&nbsp; 密码 ：
    <asp:TextBox ID="txtPwd" runat="server" TextMode="Password"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="txtPwd" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
    <br />
    <br />
    确认密码 ：
    <asp:TextBox ID="txtAgainPwd" runat="server" TextMode="Password"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
            ControlToValidate="txtAgainPwd" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
        <asp:CompareValidator ID="CompareValidator1" runat="server" 
            ControlToCompare="txtPwd" ControlToValidate="txtAgainPwd" Display="Dynamic" 
            ErrorMessage="两次输入的密码不一样"></asp:CompareValidator>

    <br />
    &nbsp;<br />
        密码问题 ： 
        <asp:TextBox ID="txtQuestion" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
            ControlToValidate="txtAnswer" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
        <br />
        <br />
        问题答案 ： 
        <asp:TextBox ID="txtAnswer" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
            ControlToValidate="txtQuestion" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
        <br />
        <br />
&nbsp;&nbsp;&nbsp; 姓名 ：
    <asp:TextBox ID="txtName" runat="server" MaxLength="30"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
            ControlToValidate="txtName" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
    <br />
    <br />
&nbsp;&nbsp;&nbsp; 性别 ：
    <asp:RadioButton ID="rbBoy" runat="server" Text="男" Checked="True" 
        GroupName="Sex" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:RadioButton ID="rbGirl" runat="server" Text="女" GroupName="Sex" />
    <br />
    <br />
&nbsp;&nbsp;&nbsp; 手机 ： 
    <asp:TextBox ID="txtPhone" runat="server" MaxLength="11"></asp:TextBox>
    <br />
    <br />
&nbsp;&nbsp;&nbsp; 电话 ：
    <asp:TextBox ID="txtTel" runat="server" MaxLength="12"></asp:TextBox>
    <br />
    <br />
&nbsp;&nbsp;&nbsp; Email：
    <asp:TextBox ID="txtEmail" runat="server" MaxLength="50"></asp:TextBox>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
            ControlToValidate="txtEmail" Display="Dynamic" ErrorMessage="邮箱格式错误" 
            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
    <br />
    <br />
&nbsp;&nbsp;&nbsp; QQ&nbsp;&nbsp; ： 
    <asp:TextBox ID="txtQQ" runat="server" MaxLength="11"></asp:TextBox>
    <br />
    <br />
&nbsp;&nbsp; 验证码： 
    <asp:TextBox ID="txtRandomCode" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
            ControlToValidate="txtRandomCode" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
        <asp:CustomValidator ID="CustomValidator2" runat="server" 
            ControlToValidate="txtRandomCode" Display="Dynamic" ErrorMessage="验证码错误" 
            onservervalidate="CustomValidator2_ServerValidate"></asp:CustomValidator>
&nbsp;<img src="DrawHandler.ashx" id="imgCode" style="vertical-align:bottom;"
    onclick="this.src='DrawHandler.ashx?Date='+new Date();" 
    alt="请刷新"  />
    <a onclick="imgCode.src='DrawHandler.ashx?Date='+new Date()" href="#" style="vertical-align:bottom;">看不清，换一个</a>&nbsp;
    <br />
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="btnRegister" runat="server" Text="注册" onclick="btnRegister_Click" />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input id="ResetRegister" type="reset" value="取消"  style="width:50px; height:20px;"/></div></div>   
</asp:Content>
