📄 register.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Desktop_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>
<link href="../Css/BaseCss.css" type="text/css" rel="stylesheet" />
</head>
<body style="margin-left:0;margin-top:0">
<form id="MyForm" method="post" runat="server">
<table border="0" cellpadding="0" cellspacing="0" style="BORDER-COLLAPSE: collapse;" width="100%">
<tr style="height: 30px;">
<td class="Text" style="background-color: #6666ff; width: 3%;"><font color="#006699" size="3"><img alt="" src="../../Images/moduleheaher.gif" width="16" height="16"></font></td>
<td class="Text" style="background-color: #6666ff;"><b>新用户注册</b></td>
</tr>
</table>
<table class="Text" bordercolor="#006699" style="border-collapse:collapse;border-color:ActiveCaption;border-width:1" width="100%" border="1">
<tr>
<td colspan="2">下面是必填内容:</td>
</tr>
<tr>
<td colspan="2"><hr /></td>
</tr>
<tr style="height:30px;">
<td align="right" style="width:150px;height:30px;">
用户名称:</td>
<td align="left" style="height: 30px;">
<asp:textbox id="UserName" runat="server" Width="150px" CssClass="InputCss"></asp:textbox>
<asp:RequiredFieldValidator id="rfN" runat="server" ErrorMessage="名称不能为空!" ControlToValidate="UserName" CssClass="Text"></asp:RequiredFieldValidator></td>
</tr>
<tr style="height:30px;">
<td align="right" style="width:150px;height:30px;">
用户密码:</td>
<td align="left" style="height: 30px;">
<asp:textbox id="Password" runat="server" Width="150px" CssClass="InputCss" TextMode="Password"></asp:textbox>
<asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ErrorMessage="密码不能为空!" ControlToValidate="Password" CssClass="Text"></asp:RequiredFieldValidator></td>
</tr>
<tr style="height:30px;">
<td align="right" style="width:150px;height:30px;">
确认密码:</td>
<td align="left" style="height: 30px;">
<asp:textbox id="PasswordStr" runat="server" Width="150px" CssClass="InputCss" TextMode="Password"></asp:textbox>
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="Password"
ControlToValidate="PasswordStr" CssClass="Text" ErrorMessage="两次输入的密码不相同。"></asp:CompareValidator></td>
</tr>
<tr style="height:30px;">
<td align="right" style="width:150px;height:30px;">
电子邮件:</td>
<td align="left" style="height: 30px;">
<asp:textbox id="Email" runat="server" Width="150px" CssClass="InputCss"></asp:textbox>
<asp:RequiredFieldValidator id="RequiredFieldValidator4" runat="server" ErrorMessage="电子邮件不能为空!" ControlToValidate="Email" CssClass="Text" Display="Dynamic"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="Email"
CssClass="Text" Display="Dynamic" ErrorMessage="格式不正确!" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
</tr>
<tr>
<td colspan="2" style="height: 17px">下面是选填内容:</td>
</tr>
<tr>
<td colspan="2"><hr /></td>
</tr>
<tr style="height:30px;">
<td align="right" style="width:150px;height:30px;">
真实名称:</td>
<td align="left" style="height: 30px;">
<asp:textbox id="RealName" runat="server" Width="150px" CssClass="InputCss"></asp:textbox>
</td>
</tr>
<tr style="height:30px;">
<td align="right" style="width:150px;height:30px;">
联系地址:</td>
<td align="left" style="height: 30px;">
<asp:textbox id="Address" runat="server" Width="300px" CssClass="InputCss"></asp:textbox>
</td>
</tr>
<tr style="height:30px;">
<td align="right" style="width:150px;height:30px;">
联系电话:</td>
<td align="left" style="height: 30px;">
<asp:textbox id="Phone" runat="server" Width="300px" CssClass="InputCss">0</asp:textbox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="Phone"
CssClass="Text" ErrorMessage="格式不正确!" ValidationExpression="\d{3,4}-\d{7,8}(-\d{1,4}){0,1}"></asp:RegularExpressionValidator></td>
</tr>
<tr style="height:30px;">
<td align="right" style="width:150px;height:30px;">
移动电话:</td>
<td align="left" style="height: 30px;">
<asp:textbox id="Mobile" runat="server" Width="300px" CssClass="InputCss">13</asp:textbox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="Mobile"
CssClass="Text" ErrorMessage="格式不正确!" ValidationExpression="13\d{9}"></asp:RegularExpressionValidator></td>
</tr>
<tr style="height:30px;">
<td align="right" style="width:150px;height:30px;">
备注信息:</td>
<td align="left" style="height: 30px;">
<asp:textbox id="Remark" runat="server" Width="400px" CssClass="InputCss" TextMode="MultiLine" Height="150px"></asp:textbox>
</td>
</tr>
<tr style="height: 30px;">
<td align="right" style="width: 150px"> </td>
<td align="left"><asp:button id="SureBtn" runat="server" Width="100px" CssClass="ButtonCss" Text="确定" OnClick="SureBtn_Click"></asp:button><font face="宋体"></font></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -