📄 register.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="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>Untitled Page</title>
</head>
<body bgcolor="#eeefff">
<form id="form1" runat="server">
<div>
<table width=960px>
<tr>
<td><asp:Image ID="image1" runat="server" ImageUrl="~/intel.gif" Width="960px"/></td>
</tr>
<tr>
<td><a href="Index.aspx">回到首页</a></td>
</tr>
<tr>
<td align="center">
<table style="position: relative">
<tr>
<td colspan="3" align=center>新用户注册
</td>
</tr>
<tr>
<td style="width: 100px">姓名
</td>
<td style="width: 100px">
<asp:TextBox ID="TextBox1" runat="server" Style="position: relative"></asp:TextBox></td>
<td style="width: 100px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
ErrorMessage="不能为空" Style="left: -13px; position: relative; top: 0px"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 100px; height: 26px;">密码
</td>
<td style="width: 100px; height: 26px;">
<asp:TextBox ID="TextBox2" runat="server" Style="position: relative" TextMode="Password"></asp:TextBox></td>
<td style="width: 100px; height: 26px;">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2"
ErrorMessage="不能为空" Style="left: -11px; position: relative; top: 0px"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 100px">电子邮箱
</td>
<td style="width: 100px">
<asp:TextBox ID="TextBox3" runat="server" Style="position: relative"></asp:TextBox></td>
<td style="width: 100px">
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox3"
ErrorMessage="邮箱格式错误" Style="position: relative" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
</tr>
<tr>
<td style="width: 100px">
</td>
<td style="width: 100px">
<asp:Button ID="Button1" runat="server" Style="left: -27px; position: relative; top: 0px"
Text="注册" OnClick="Button1_Click" /></td>
<td style="width: 100px">
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -