<%@ Page Language="C#" AutoEventWireup="true" CodeFile="cusreg.aspx.cs" Inherits="cusreg" validateRequest="false"%>

<!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>
	<LINK href="css/default.css" type=text/css rel=stylesheet>
</head>
<body style="background-color:transparent">
    <form id="form1" runat="server" defaultbutton="send">
    <div>
    <DIV class="m73" style="width:88%; height:530px;">

   <table width="100%" border="0" cellspacing="00" cellpadding="00">
    <tr>
      <td colspan="2" style="height: 30px"><div align="center" style="font-size:14px;padding-right:30px;"><strong>用户注册</strong></div></td>
      </tr>
	<tr>
      <td width="23%" style="height: 40px"><div align="right">昵称:</div></td>
      <td width="77%" style="height: 40px" align="left">&nbsp;
          <asp:TextBox ID="cname" runat="server" Width="150px" SkinID="worm" MaxLength="8"></asp:TextBox>
          <asp:RequiredFieldValidator ID="Rename" runat="server" ControlToValidate="cname"
              ErrorMessage="*" SetFocusOnError="True" Display="Dynamic"></asp:RequiredFieldValidator>
          <asp:CustomValidator ID="CustomValidator1" runat="server"
              ControlToValidate="cname" ErrorMessage="用户名已存在！" Display="Dynamic" OnServerValidate="samename"></asp:CustomValidator>
          <asp:Label ID="csame" runat="server"></asp:Label>
          </td>
    </tr>
    <tr>
      <td style="height: 40px"><div align="right">
          密码:</div></td>
      <td style="height: 40px" align="left">
          &nbsp;&nbsp;<asp:TextBox ID="cpw" runat="server" TextMode="Password" Width="150px" SkinID="worm" MaxLength="15"></asp:TextBox>
          <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="cpw"
              ErrorMessage="*" Display="Dynamic"></asp:RequiredFieldValidator></td>
    </tr>
	<tr>
      <td style="height: 40px"><div align="right">
          重复密码:</div></td>
      <td style="height: 40px" align="left">
          &nbsp;&nbsp;<asp:TextBox ID="cpw2" runat="server" TextMode="Password" Width="150px" SkinID="worm" MaxLength="15"></asp:TextBox>
          <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="cpw2"
              Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
          <asp:CompareValidator ID="compw" runat="server" ControlToCompare="cpw2" ControlToValidate="cpw"
              ErrorMessage="密码不一致" OnDisposed="pwcom"></asp:CompareValidator></td>
    </tr>
	<tr>
      <td style="height: 40px"><div align="right">
          性别:</div></td>
      <td style="height: 40px" align="left">
          &nbsp;&nbsp;&nbsp;<asp:RadioButtonList ID="csex" runat="server" Height="1px" Width="75px" RepeatColumns="2" TextAlign="Left" RepeatLayout="Flow" CellPadding="0" CellSpacing="0">
              <asp:ListItem Selected="True" Value="男">男</asp:ListItem>
              <asp:ListItem>女</asp:ListItem>
          </asp:RadioButtonList></td>
    </tr>
	<tr>
      <td style="height: 40px"><div align="right">
          QQ号码:</div></td>
      <td style="height: 40px" align="left">
          &nbsp;&nbsp;<asp:TextBox ID="cqq" runat="server" Width="150px" SkinID="worm" MaxLength="11"></asp:TextBox>&nbsp;
          <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="cqq"
              Display="Dynamic" ErrorMessage="不是数字" ValidationExpression="^\d+$"></asp:RegularExpressionValidator></td>
    </tr>
	<tr>
      <td style="height: 40px"><div align="right">邮址:</div></td>
      <td style="height: 40px" align="left">
          &nbsp;&nbsp;<asp:TextBox ID="cmail" runat="server" Width="100px" SkinID="worm"></asp:TextBox>
          <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="cmail"
              Display="Dynamic" ErrorMessage="不是邮件地址" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
          </td>
    </tr>
	<tr>
      <td style="height: 40px"><div align="right">
          地址:</div></td>
      <td style="height: 40px" align="left">
          &nbsp;&nbsp;<asp:TextBox ID="caddress" runat="server" Width="255px" SkinID="worm"></asp:TextBox></td>
    </tr>
	<tr>
      <td style="height: 50px; padding-top:20px"><div align="right">会员头像:</div></td>
      <td style="height: 50px" align="left">
          &nbsp;&nbsp;
          <asp:DropDownList ID="headlist" runat="server"  onChange="document.images['face'].src=options[selectedIndex].value;">
              <asp:ListItem Selected="True" Value="images/head/1.jpg">头像1</asp:ListItem>
              <asp:ListItem Value="images/head/2.jpg">头像2</asp:ListItem>
              <asp:ListItem Value="images/head/3.jpg">头像3</asp:ListItem>
              <asp:ListItem Value="images/head/4.jpg">头像4</asp:ListItem>
              <asp:ListItem Value="images/head/5.jpg">头像5</asp:ListItem>
              <asp:ListItem Value="images/head/6.jpg">头像6</asp:ListItem>
              <asp:ListItem Value="images/head/7.jpg">头像7</asp:ListItem>
              <asp:ListItem Value="images/head/8.jpg">头像8</asp:ListItem>
              <asp:ListItem Value="images/head/9.jpg">头像9</asp:ListItem>
              <asp:ListItem Value="images/head/10.jpg">头像10</asp:ListItem>
          </asp:DropDownList>
          <asp:Image ID="face" runat="server" ImageUrl="~/images/head/1.jpg" />&nbsp;
      </td>
    </tr>
	<tr>
      <td style="height: 40px"><div align="right">自我介绍:</div></td>
      <td style="height: 40px" align="left">
          &nbsp;&nbsp;<asp:TextBox ID="cinstroduce" runat="server"  Height="93px" TextMode="MultiLine" Width="257px" SkinID="worm"></asp:TextBox></td>
    </tr>
	<tr>
      <td style="height: 40px"><div align="right">
          验证码:</div></td>
      <td style="height: 40px" align="left">
          &nbsp;&nbsp;<asp:TextBox ID="tbck" runat="server" Width="107px" SkinID="worm"></asp:TextBox>
          <img alt="看不清？点击更换" onclick="this.src=this.src+'?'" src="VerifyCode.aspx" />
      </td>
    </tr>
    <tr>
      <td colspan="2" style="height: 35px"><p align="center">
          <asp:Button ID="send" runat="server" Text="提交" OnClick="send_Click" BackColor="White" BorderColor="#E0E0E0" BorderStyle="Dotted" Width="60px"  />&nbsp;&nbsp;
          &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
          <asp:Button ID="reset" runat="server" Text="重置" OnClick="reset_Click" BackColor="White" BorderColor="#E0E0E0" BorderStyle="Dotted" Width="60px" CausesValidation="False" /></p></td>
      </tr>
  </table>

</DIV>
    </div>
    </form>
</body>
</html>
