📄 userregist.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="UserRegist.aspx.cs"
Inherits="UserRegist" %>
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<!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>
<style type="text/css">
.style1
{
width: 100%;
}
.style2
{
width: 121px;
height: 31px;
}
.style3
{
width: 150px;
height: 31px;
}
.style4
{
height: 25px;
width: 85px;
}
.style6
{
height: 21px;
width: 85px;
}
.style7
{
width: 85px;
height: 31px;
}
.style8
{
width: 121px;
height: 21px;
}
.style9
{
width: 150px;
height: 21px;
}
.style10
{
height: 25px;
width: 121px;
}
.style11
{
width: 121px;
}
.style12
{
width: 85px;
}
</style>
</head>
<body background="Image2/beijing.png">
<form id="form1" runat="server">
<div>
<div style="text-align: center">
<br />
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
<asp:View ID="View1" runat="server">
<br />
<table style="width: 444px; height: 219px">
<tr>
<td colspan="2" style="height: 25px" align="center">
用户注册</td>
<td align="center" style="height: 25px">
</td>
</tr>
<tr>
<td align="right" class="style10">
用户名:</td>
<td align="left" class="style4">
<asp:TextBox ID="txtloginid" runat="server" Width="153px" AutoPostBack="True"
ontextchanged="txtloginid_TextChanged"></asp:TextBox>
</td>
<td align="left" style="width: 150px; height: 25px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="txtloginid" ErrorMessage="*"
Font-Size="Small"></asp:RequiredFieldValidator>
<asp:Label ID="lblmag" runat="server" Font-Size="Small" ForeColor="Red"></asp:Label>
</td>
</tr>
<tr>
<td align="right" class="style11">
密 码:</td>
<td align="left" class="style12">
<asp:TextBox ID="txtloginpwd" runat="server" TextMode="Password" Width="153px"></asp:TextBox>
</td>
<td align="left" style="width: 150px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="txtloginpwd" ErrorMessage="*"
Font-Size="Small"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" class="style11">
确认密码:</td>
<td align="left" class="style12">
<asp:TextBox ID="txtpwd1" runat="server" Width="153px" TextMode="Password"></asp:TextBox>
</td>
<td align="left" style="width: 150px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server"
ControlToValidate="txtpwd1" Display="Dynamic" ErrorMessage="*"
Font-Size="Small"></asp:RequiredFieldValidator>
<asp:CompareValidator ID="CompareValidator1" runat="server"
ControlToCompare="txtloginpwd" ControlToValidate="txtpwd1" ErrorMessage="密码不一致"
Font-Size="Small"></asp:CompareValidator>
</td>
</tr>
<tr>
<td align="right" class="style8">
真是姓名:</td>
<td align="left" class="style6">
<asp:TextBox ID="txtname" runat="server" Width="153px"></asp:TextBox>
</td>
<td align="left" class="style9">
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
ControlToValidate="txtname" ErrorMessage="*"
Font-Size="Small"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" class="style2">
地 址:</td>
<td align="left" class="style7">
<asp:TextBox ID="txtaddress" runat="server" Width="153px"></asp:TextBox>
</td>
<td align="left" class="style3">
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
ControlToValidate="txtaddress" ErrorMessage="*"
Font-Size="Small"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" class="style11">
电 话:</td>
<td align="left" class="style12">
<asp:TextBox ID="txtphone" runat="server" Width="153px"></asp:TextBox>
</td>
<td align="left" style="width: 150px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
ControlToValidate="txtphone" ErrorMessage="*" Display="Dynamic"
Font-Size="Small"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server"
ControlToValidate="txtphone" Display="Dynamic" ErrorMessage="必须是数字!"
ValidationExpression="^\d+$"
Font-Size="Small"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td align="right" class="style11">
Ema i l :</td>
<td align="left" class="style12">
<asp:TextBox ID="txtemail" runat="server" Width="153px"></asp:TextBox>
</td>
<td align="left" style="width: 150px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"
ControlToValidate="txtemail" Display="Dynamic" ErrorMessage="*"
Font-Size="Small"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="txtemail" Display="Dynamic" ErrorMessage="格式不对!"
Font-Size="Small"
ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td align="center" colspan="2" style="height: 29px">
<asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">创建新用户</asp:LinkButton>
<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False"
onclick="LinkButton2_Click">返回</asp:LinkButton>
</td>
<td align="center" style="height: 29px">
</td>
</tr>
</table>
</asp:View>
<asp:View ID="View2" runat="server">
<table style="width: 364px; height: 219px">
<tr>
<td colspan="2" style="height: 25px" align="center">
用户注册</td>
</tr>
<tr>
<td align="right" style="width: 160px; height: 25px">
用户名:</td>
<td align="left" style="width: 150px; height: 25px">
<asp:Label ID="lblLoginID" runat="server" Width="31px"></asp:Label>
</td>
</tr>
<tr>
<td align="right" style="width: 160px; height: 24px">
真是姓名:</td>
<td align="left" style="width: 150px; height: 24px">
<asp:Label ID="lblName" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td align="right" style="width: 160px">
地 址:</td>
<td align="left" style="width: 150px">
<asp:Label ID="lblAddress" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td align="right" style="width: 160px">
电 话:</td>
<td align="left" style="width: 150px">
<asp:Label ID="lblPhone" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td align="right" style="width: 160px">
Email :</td>
<td align="left" style="width: 150px">
<asp:Label ID="lblEmail" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td align="center" colspan="2" style="height: 29px">
<asp:LinkButton ID="LinkButton3" runat="server" onclick="LinkButton3_Click">确定</asp:LinkButton>
<asp:LinkButton ID="LinkButton4" runat="server" onclick="LinkButton4_Click">返回</asp:LinkButton>
</td>
</tr>
</table>
</asp:View>
</asp:MultiView>
</ContentTemplate>
</asp:UpdatePanel>
<table align="center" class="style1">
<tr>
<td>
</td>
</tr>
</table>
</div>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -