📄 注册.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="注册.aspx.cs" Inherits="注册" %>
<%@ Register Src="WebUserControl5.ascx" TagName="WebUserControl5" TagPrefix="uc1" %>
<!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 bgcolor="#e3fbff" alink="#ffffff" background="image/027.jpg">
<form id="form1" runat="server">
<div>
<div align="left">
<table border="1" align="center" style="width: 518px">
<tr>
<td colspan="4">
<uc1:WebUserControl5 ID="WebUserControl5_1" runat="server" />
<hr /> </td>
</tr>
<tr>
<td colspan="1" style="width: 254px; height: 21px">
<asp:Label ID="Label1" runat="server" Text="用户名"></asp:Label></td>
<td colspan="3" style="height: 21px">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox1" ErrorMessage="用户名不能为空">(此项为必填项)</asp:RequiredFieldValidator>
<br /></td>
</tr>
<tr>
<td colspan="1" style="width: 254px; height: 49px;">
<asp:Label ID="Label2" runat="server" Text="密码"></asp:Label></td>
<td colspan="3" style="height: 49px">
<asp:TextBox ID="TextBox3" runat="server" TextMode="Password"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ErrorMessage="请输入正确格式的密码" ControlToValidate="TextBox3" ValidationExpression=".{6,}"></asp:RegularExpressionValidator><br /></td>
</tr>
<tr>
<td colspan="1" style="width: 254px">
<asp:Label ID="Label3" runat="server" Text="重复密码"></asp:Label></td>
<td colspan="3">
<asp:TextBox ID="TextBox2" runat="server" TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator" runat="server" ControlToValidate="TextBox2" ErrorMessage="密码不能为空">(此项为必填项)</asp:RequiredFieldValidator><br />
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="TextBox2" ControlToCompare="TextBox3" Type="string" Operator="Equal" ErrorMessage="重复密码和密码不相符,请重输!">(重复密码和密码不相符)</asp:CompareValidator><br /> </td>
</tr>
<tr>
<td colspan="1" style="width: 254px">
<asp:Label ID="Label4" runat="server" Text="邮箱"></asp:Label></td>
<td colspan="3">
<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBox4" ErrorMessage="请输入正确的邮箱格式"
ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator><br /></td>
</tr>
<tr>
<td colspan="1" style="width: 254px">
<asp:Label ID="Label5" runat="server" Text="联系电话"></asp:Label></td>
<td colspan="3">
<asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="请输入正确的电话格式" ControlToValidate="TextBox5" ValidationExpression="(\(\d{3}\)|\d{3}-)?\d{8}"></asp:RegularExpressionValidator><br /></td>
</tr>
<tr>
<td colspan="1" style="width: 254px">
<asp:Button ID="Button1" runat="server" Height="29px" Text="注册" Width="67px" OnClick="Button1_Click" /></td>
<td colspan="3">
<asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText="页面输入中有下面的错误:" ShowSummary="true" DisplayMode="List" /><br /> </td>
</tr>
</table>
</div>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -