16,721
社区成员




<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserRegister.aspx.cs" Inherits="_Default" %>
<!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="style.css" rel="stylesheet" type="text/css">
</head>
<body style="font-family: 宋体">
<form id="form1" runat="server">
<div>
<div style="z-index: 101; left: 229px; width: 760px; position: absolute; top: 59px;
height:800px; text-align: center" id="a">
<table style="width: 90%; height: 687px; border-left-color: gray; border-right-style: solid; border-left-style: solid; border-right-color: gray; border-bottom-color: gray; border-top-style: solid; border-top-color: gray; border-bottom-style: solid;">
<tr>
<td colspan="3" style="width: 25%; border-bottom: gray thin dashed; text-align: right">
<h1 style="text-align: center">
<span style="margin-top: 2px; font-size: 2em; margin-bottom: 3px; vertical-align: middle;
border-bottom: gray thin dotted; font-family: 黑体, 新宋体; position: static; text-align: center">
用户注册</span></h1></td>
</tr>
<tr>
<td style="width: 25%; text-align: right;">
<asp:Label ID="Label6" runat="server" ForeColor="Red" Text="*"></asp:Label>用户名:</td>
<td style="width: 40%; border-top-width: thin; border-top-color: #cccccc; text-align: left; border-bottom: gray thin dashed;">
<asp:TextBox ID="TextBox1" runat="server" MaxLength="16"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox1"
ErrorMessage="错误" ValidationExpression="^[a-zA-Z][a-zA-Z0-9_]{3,15}$"></asp:RegularExpressionValidator>
</td>
<td style="width: 40%; border-top-width: thin; border-bottom-width: thin; border-bottom-color: gray; border-top-color: gray; text-align: left;">
<asp:Label ID="Label1" runat="server" Text="登录名:字母开头,4-16个字符(包括4、16), 请用英文小写、汉字、数字."></asp:Label></td>
</tr>
<tr>
<td style="width: 25%; text-align: right;">
<asp:Label ID="Label7" runat="server" ForeColor="Red" Text="*"></asp:Label>输入登录密码:</td>
<td style="width: 40%; text-align: left;">
<asp:TextBox ID="TextBox2" runat="server" TextMode="Password" MaxLength="16"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBox2"
ErrorMessage="错误" ValidationExpression="[a-zA-Z0-9_]{5,15}$"></asp:RegularExpressionValidator>
</td>
<td rowspan="2" style="border-top-width: thin; border-bottom-width: thin; border-bottom-color: gray;
width: 40%; border-top-color: gray; text-align: left;">
<asp:Label ID="Label2" runat="server" Text="密码为6—16位(包括6、16),限用英文、数字和下划线,区分大小写"></asp:Label></td>
</tr>
<tr>
<td style="width: 25%; text-align: right; height: 43px;">
<asp:Label ID="Label8" runat="server" ForeColor="Red" Text="*"></asp:Label>再次输入密码:</td>
<td style="width: 40%; text-align: left; height: 43px;">
<asp:TextBox ID="TextBox3" runat="server" TextMode="Password" MaxLength="16"></asp:TextBox>
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBox3"
ControlToValidate="TextBox2" ErrorMessage="错误"></asp:CompareValidator>
</td>
</tr>
<tr>
<td style="width: 25%; text-align: right; height: 50px;">
<asp:Label ID="Label9" runat="server" ForeColor="Red" Text="*"></asp:Label>
登录人性别:</td>
<td style="width: 40%; border-top: gray thin dashed; border-bottom: gray thin dashed; text-align: left; height: 50px;">
<asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal"
Width="150px">
<asp:ListItem Selected="True">男</asp:ListItem>
<asp:ListItem>女</asp:ListItem>
</asp:RadioButtonList></td>
<td style="width: 40%; border-top-width: thin; border-bottom-width: thin; border-bottom-color: gray; border-top-color: gray; height: 50px; text-align: left;">
<asp:Label ID="Label5" runat="server" Text="请登录者输入性别"></asp:Label></td>
</tr>
<tr>
<td style="width: 25%; text-align: right;">
<asp:Label ID="Label10" runat="server" ForeColor="Red" Text="*"></asp:Label>密码查询问题:</td>
<td style="width: 40%; height: 40px; text-align: left;">
<asp:TextBox ID="TextBox7" runat="server"></asp:TextBox></td>
<td rowspan="2" style="border-top-width: thin; border-bottom-width: thin; border-bottom-color: gray;
width: 40%; border-top-color: gray; text-align: left;">
<asp:Label ID="Label3" runat="server" Text="查询答案:6个字母、数字、空格(空格不能在首尾)或3个汉字以上(包括6个)。"></asp:Label></td>
</tr>
<tr>
<td style="width: 25%; text-align: right;">
<asp:Label ID="Label11" runat="server" ForeColor="Red" Text="*"></asp:Label>密码查询答案:</td>
<td style="width: 40%; text-align: left;">
<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 25%; text-align: right;">
<asp:Label ID="Label12" runat="server" ForeColor="Red" Text="*"></asp:Label>安全邮箱:</td>
<td style="width: 40%; text-align: left;">
<asp:TextBox ID="TextBox5" runat="server" Width="151px"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="TextBox5"
ErrorMessage="错误" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
<td style="width: 40%; border-top-width: thin; border-bottom-width: thin; border-bottom-color: gray; border-top-color: gray; text-align: left;">
<asp:Label ID="Label4" runat="server" Text="忘记密码时,可凭安全邮箱索取密码。"></asp:Label></td>
</tr>
<tr>
<td style="width: 25%; text-align: right; border-top-width: thin; border-bottom-width: thin; border-bottom-color: gray; border-top-color: gray;">
<asp:Label ID="Label13" runat="server" ForeColor="Red" Text="*"></asp:Label></td>
<td style="width: 40%; border-top: gray thin dashed; border-bottom-width: thin; border-bottom-color: gray; text-align: left;">
<asp:CheckBox ID="CheckBox1" runat="server" Checked="True" Text="我已经看过并同意" /><br />
<asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">《用户注册条款》</asp:LinkButton></td>
<td style="width: 40%; border-top-width: thin; border-bottom-width: thin; border-bottom-color: gray; border-top-color: gray;">
</td>
</tr>
<tr>
<td colspan="3" style="border-top: gray thin dashed; border-bottom-color: gray; width: 25%;text-align: center; border-bottom-style: none">
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="提 交" />
<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="重 置" />
</td>
</tr>
</table>
</div>
</div>
</form>
</body>
</html>