📄 reg.aspx
字号:
<%@ page language="C#" autoeventwireup="true" inherits="reg, space_deploy" %>
<!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="webimages/css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
background-color: #E6E6E6;
margin-top: 20px;
}
-->
</style>
</head>
<body>
<form id="form1" runat="server">
<table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="82" height="33" align="center" background="webimages/menu_home.jpg" class="title_down">用户注册</td>
<td align="right" background="webimages/menu_bg_line.jpg"> </td>
<td width="10"><img src="webimages/menu_right.jpg" width="10" height="33" /></td>
</tr>
</table>
<table width="400" border="0" align="center" cellpadding="0" cellspacing="0" class="user_right">
<tr>
<td align="center"> </td>
<td> </td>
</tr>
<tr>
<td width="100" height="35" align="center">用户名</td>
<td> <asp:TextBox ID="TextBox1" runat="server" Width="150px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
ErrorMessage="请填写用户名!"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td height="35" align="center">昵 称</td>
<td> <asp:TextBox ID="TextBox2" runat="server" Width="150px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2"
ErrorMessage="请填写昵称!"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td height="35" align="center">密 码</td>
<td> <asp:TextBox ID="TextBox3" runat="server" TextMode="Password" Width="150px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox3"
ErrorMessage="请填写密码!"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td height="35" align="center">密码确认</td>
<td> <asp:TextBox ID="TextBox4" runat="server" TextMode="Password" Width="150px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBox4"
ErrorMessage="请填写验证密码!"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td height="35" align="center">电子邮箱</td>
<td> <asp:TextBox ID="TextBox5" runat="server" Width="150px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TextBox5"
ErrorMessage="请填写电子邮箱!"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td height="35" align="center">QQ</td>
<td> <asp:TextBox ID="TextBox6" runat="server" Width="150px"></asp:TextBox>
<asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="TextBox6"
ErrorMessage="QQ号码有误!" MaximumValue="999999999" MinimumValue="1000" Type="Integer"></asp:RangeValidator></td>
</tr>
<tr>
<td height="35" align="center">个人签名</td>
<td> <asp:TextBox ID="TextBox7" runat="server" Width="150px"></asp:TextBox></td>
</tr>
<tr>
<td height="50" colspan="2" align="center">
<asp:Button ID="Button1" runat="server" Text="注 册" OnClick="Button1_Click" /></td>
</tr>
</table>
<table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBox3"
ControlToValidate="TextBox4" ErrorMessage="密码不一致,请重新填写!"></asp:CompareValidator></td>
</tr>
<tr>
<td><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox5"
ErrorMessage="电子邮箱填写有误,请重新填写!" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -