📄 register.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="MemberManage_Register" %>
<!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>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Panel ID="Panel1" runat="server" Height="385px" Width="520px" BorderColor="#C0C000" BorderWidth="1px" ScrollBars="Vertical">
<table cellpadding="0" cellspacing="0" align="center">
<tr>
<td style="text-align: center; height: 487px;">
<asp:Label ID="Label2" runat="server" Font-Size="9pt" ForeColor="Red" Text="新会员注册"
Width="65px"></asp:Label>
<table align="center" cellpadding="0" cellspacing="0" >
<tr>
<td style="width: 89px; text-align: center" rowspan="12">
</td>
<td style="width: 94px; text-align: center;">
<asp:Label ID="labLoginName" runat="server" Text="会员登录名" Font-Size="9pt" Width="66px"></asp:Label></td>
<td style="width: 169px; text-align: left;">
<asp:TextBox ID="txtLoginName" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox>
<asp:Button ID="btnTest" runat="server" Font-Size="9pt" OnClick="btnTest_Click" Text="检测会员名" CausesValidation="False" /></td>
<td style="width: 149px; height: 25px;">
<asp:RequiredFieldValidator ID="rfvLoginName" runat="server" ControlToValidate="txtLoginName" Font-Size="9pt" Height="1px" Width="117px">会员登录名不能为空</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 94px; text-align: center;">
<asp:Label ID="labSex" runat="server" Text="性别" Font-Size="9pt" Width="27px"></asp:Label></td>
<td style="width: 169px; text-align: left;">
<asp:DropDownList ID="ddlSex" runat="server" Width="127px" Font-Size="9pt">
<asp:ListItem>男</asp:ListItem>
<asp:ListItem>女</asp:ListItem>
</asp:DropDownList></td>
<td style="width: 149px">
</td>
</tr>
<tr>
<td style="width: 94px; text-align: center;">
<asp:Label ID="labPwd" runat="server" Text="密码" Font-Size="9pt" Width="27px"></asp:Label></td>
<td style="width: 169px; text-align: left;">
<asp:TextBox ID="txtPwd" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox></td>
<td style="width: 149px">
<asp:RequiredFieldValidator ID="rfvPwd" runat="server" ControlToValidate="txtPwd" Font-Size="9pt" Width="104px">会员密码不能为空</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 94px; text-align: center;">
<asp:Label ID="labTName" runat="server" Text="真实姓名" Font-Size="9pt" Width="52px"></asp:Label></td>
<td style="width: 169px; text-align: left;">
<asp:TextBox ID="txtTName" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox></td>
<td style="width: 149px">
</td>
</tr>
<tr>
<td style="width: 94px; text-align: center;">
<asp:Label ID="labQuePwd" runat="server" Text="密码问题" Font-Size="9pt" Width="52px"></asp:Label></td>
<td style="width: 169px; text-align: left;">
<asp:TextBox ID="txtQuePwd" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox></td>
<td style="width: 149px">
<asp:RequiredFieldValidator ID="rfvQuePwd" runat="server" ControlToValidate="txtQuePwd" Font-Size="9pt" Width="136px">您应该输入密码问题,以防造成不必要的损失</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 94px; text-align: center;">
<asp:Label ID="labAnsPwd" runat="server" Text="密码提示答案" Font-Size="9pt" Width="72px"></asp:Label></td>
<td style="width: 169px; text-align: left;">
<asp:TextBox ID="txtAnsPwd" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox></td>
<td style="width: 149px">
<asp:RequiredFieldValidator ID="rfvAnsPwd" runat="server" ControlToValidate="txtAnsPwd" Font-Size="9pt" Width="135px">您应该输入密码问题的提示答案,以防造成不必要的损失</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 94px; text-align: center; height: 23px;">
<asp:Label ID="labTel" runat="server" Text="电话" Font-Size="9pt" Width="28px"></asp:Label></td>
<td style="width: 169px; text-align: left; height: 23px;">
<asp:TextBox ID="txtTel" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox></td>
<td style="width: 149px; height: 23px;">
</td>
</tr>
<tr>
<td style="width: 94px; text-align: center;">
<asp:Label ID="labEmail" runat="server" Text="E-mail地址" Font-Size="9pt" Width="57px"></asp:Label></td>
<td style="width: 169px; text-align: left;">
<asp:TextBox ID="txtEmail" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox></td>
<td style="width: 149px">
<asp:RegularExpressionValidator ID="revEmail" runat="server" ControlToValidate="txtEmail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Font-Size="9pt" Width="132px">您输入的E-mail地址格式不正确,请重新输入</asp:RegularExpressionValidator></td>
</tr>
<tr>
<td style="width: 94px; text-align: center;">
<asp:Label ID="Label1" runat="server" Text="所在城市" Font-Size="9pt" Width="51px"></asp:Label></td>
<td style="width: 169px; text-align: left;"><asp:DropDownList ID="ddlCity" runat="server" Width="127px" Font-Size="9pt">
<asp:ListItem>长春市</asp:ListItem>
<asp:ListItem>长治市</asp:ListItem>
<asp:ListItem>北京市</asp:ListItem>
<asp:ListItem>上海市</asp:ListItem>
<asp:ListItem>天津市</asp:ListItem>
<asp:ListItem>吉林市</asp:ListItem>
<asp:ListItem>乌鲁木齐</asp:ListItem>
<asp:ListItem>呼和浩特</asp:ListItem>
<asp:ListItem>银川</asp:ListItem>
<asp:ListItem>拉萨</asp:ListItem>
<asp:ListItem>五台山</asp:ListItem>
<asp:ListItem>太行山</asp:ListItem>
<asp:ListItem>吐鲁番</asp:ListItem>
</asp:DropDownList></td>
<td style="width: 149px">
</td>
</tr>
<tr>
<td style="width: 94px; text-align: center;">
<asp:Label ID="labAddress" runat="server" Text="住址" Font-Size="9pt" Width="27px"></asp:Label></td>
<td style="width: 169px; text-align: left;">
<asp:TextBox ID="txtAddress" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox></td>
<td style="width: 149px">
</td>
</tr>
<tr>
<td style="width: 94px; text-align: center; height: 23px;">
<asp:Label ID="labPostCode" runat="server" Text="邮编" Font-Size="9pt" Width="27px"></asp:Label></td>
<td style="width: 169px; text-align: left; height: 23px;">
<asp:TextBox ID="txtPostCode" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox></td>
<td style="width: 149px; height: 23px;">
<asp:RegularExpressionValidator ID="revPostCode" runat="server" ControlToValidate="txtPostCode" ValidationExpression="\d{6}" Font-Size="9pt" Width="134px">您的邮编输入有误</asp:RegularExpressionValidator></td>
</tr>
<tr>
<td style="width: 94px; text-align: center; height: 23px;">
<asp:Label ID="labPhone" runat="server" Text="头像" Font-Size="9pt" Width="37px"></asp:Label></td>
<td style="width: 169px; text-align: left; height: 23px;"><asp:DropDownList ID="ddlPhoto" runat="server" Width="127px" Font-Size="9pt" OnSelectedIndexChanged="ddlPhoto_SelectedIndexChanged" AutoPostBack="True">
</asp:DropDownList></td>
<td style="width: 149px; height: 23px;">
</td>
</tr>
<tr>
<td style="text-align: center" colspan="2" rowspan="2">
</td>
<td style="width: 169px; text-align: left;">
<asp:Image ID="imgPhoto" runat="server" Height="120px" Width="90px" /></td>
<td style="width: 149px;" rowspan="2">
</td>
</tr>
<tr>
<td style="width: 169px; text-align: left; height: 22px;">
<asp:Button ID="btnRegister" runat="server" Text="注册" OnClick="btnRegister_Click" Font-Size="9pt" />
<asp:Button ID="btnCancel" runat="server" Text="重置" OnClick="btnCancel_Click" Font-Size="9pt" CausesValidation="False" /></td>
</tr>
</table>
</td>
</tr>
</table>
</asp:Panel>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -