📄 adduser.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddUser.aspx.cs" Inherits="BackDesk_ManageCard_AddUser" %>
<%@ Register Src="BBSFooter.ascx" TagName="BBSFooter" TagPrefix="uc2" %>
<%@ Register Src="BBSHeader.ascx" TagName="BBSHeader" 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>
<form id="form1" runat="server">
<div>
<table style="width: 755px; height: 138px;" align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 755px; height: 138px;">
<uc1:BBSHeader ID="BBSHeader1" runat="server" />
</td>
</tr>
</table>
<table style="width: 755px" align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 755px;text-align: left; background-image: url(../../Image/背景图3.jpg);">
<asp:Label ID="Label2" runat="server" Font-Size="9pt" Text="欢迎您," Width="50px"></asp:Label><asp:Label
ID="labUserName" runat="server" Font-Size="9pt" Width="74px"></asp:Label>
</td>
</tr>
</table>
<table style="width: 755px;" align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="background-image: url(../../Image/背景图2.jpg); width: 755px; height: 365px" >
<table align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 156px; text-align: center;">
<asp:Label ID="labUserID" runat="server" Text="用户ID" Font-Size="9pt" Width="73px"></asp:Label></td>
<td style="width: 233px; text-align: left;">
<asp:TextBox ID="txtUserID" runat="server" Font-Size="9pt"></asp:TextBox>
<asp:Button ID="btnTest" runat="server" CausesValidation="False" Font-Size="9pt"
OnClick="btnTest_Click" Text="检测用户ID" /></td>
<td style="width: 136px">
<asp:RequiredFieldValidator ID="rfvUserID" runat="server" ErrorMessage="用户ID不能为空"
Height="10px" Width="1px" ControlToValidate="txtUserID">*</asp:RequiredFieldValidator>
<asp:Label ID="Label1" runat="server" Font-Size="9pt" ForeColor="#FF0066" Text="(请输入1-10位有效数字)"
Width="142px"></asp:Label></td>
</tr>
<tr>
<td style="width: 156px; text-align: center;">
<asp:Label ID="labLoginName" runat="server" Text="用户登录名" Font-Size="9pt" Width="62px"></asp:Label></td>
<td style="width: 233px; text-align: left;">
<asp:TextBox ID="txtLoginName" runat="server" Font-Size="9pt"></asp:TextBox></td>
<td style="width: 136px">
<asp:RequiredFieldValidator ID="rfvLoginName" runat="server" ErrorMessage="用户登录名不能为空" ControlToValidate="txtLoginName">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 156px; text-align: center;">
<asp:Label ID="labSex" runat="server" Text="性 别" Font-Size="9pt" Width="39px"></asp:Label></td>
<td style="width: 233px; text-align: left;">
<asp:DropDownList ID="ddlSex" runat="server" Width="132px" Font-Size="9pt">
<asp:ListItem>男</asp:ListItem>
<asp:ListItem>女</asp:ListItem>
</asp:DropDownList></td>
<td style="width: 136px">
</td>
</tr>
<tr>
<td style="width: 156px; height: 25px; text-align: center;">
<asp:Label ID="labPwd" runat="server" Text="密 码" Font-Size="9pt" Width="39px"></asp:Label></td>
<td style="width: 233px; text-align: left;">
<asp:TextBox ID="txtPwd" runat="server" Font-Size="9pt" TextMode="Password" Width="127px"></asp:TextBox></td>
<td style="width: 136px; height: 25px;">
<asp:RequiredFieldValidator ID="rfvPwd" runat="server" ErrorMessage="用户密码不能为空" ControlToValidate="txtPwd">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 156px; text-align: center;">
<asp:Label ID="labSecPwd" runat="server" Text="重复密码" Font-Size="9pt"></asp:Label></td>
<td style="width: 233px; text-align: left;">
<asp:TextBox ID="txtSecPwd" runat="server" Font-Size="9pt" TextMode="Password" Width="127px"></asp:TextBox></td>
<td style="width: 136px">
<asp:CompareValidator ID="ccvPwd" runat="server" ErrorMessage="用户输入的密码必须一致"
Width="1px" ControlToCompare="txtPwd" ControlToValidate="txtSecPwd">*</asp:CompareValidator></td>
</tr>
<tr>
<td style="width: 156px; text-align: center;">
<asp:Label ID="labTName" runat="server" Text="真实姓名" Font-Size="9pt"></asp:Label></td>
<td style="width: 233px; text-align: left;">
<asp:TextBox ID="txtTName" runat="server" Font-Size="9pt"></asp:TextBox></td>
<td style="width: 136px">
</td>
</tr>
<tr>
<td style="width: 156px; text-align: center;">
<asp:Label ID="labQuePwd" runat="server" Text="密码问题" Font-Size="9pt"></asp:Label></td>
<td style="width: 233px; text-align: left;">
<asp:TextBox ID="txtQuePwd" runat="server" Font-Size="9pt"></asp:TextBox></td>
<td style="width: 136px">
<asp:RequiredFieldValidator ID="rfvQuePwd" runat="server" ErrorMessage="用户必须输入密码问题,以防造成不必要的损失" ControlToValidate="txtQuePwd">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 156px; text-align: center;">
<asp:Label ID="labAnsPwd" runat="server" Text="密码提示答案" Font-Size="9pt"></asp:Label></td>
<td style="width: 233px; text-align: left;">
<asp:TextBox ID="txtAnsPwd" runat="server" Font-Size="9pt"></asp:TextBox></td>
<td style="width: 136px">
<asp:RequiredFieldValidator ID="rfvAnsPwd" runat="server" ErrorMessage="用户必须输入密码问题的提示答案,以防造成不必要的损失" ControlToValidate="txtAnsPwd">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 156px; text-align: center;">
<asp:Label ID="labTel" runat="server" Text="电 话" Font-Size="9pt" Width="40px"></asp:Label></td>
<td style="width: 233px; text-align: left;">
<asp:TextBox ID="txtTel" runat="server" Font-Size="9pt"></asp:TextBox></td>
<td style="width: 136px">
</td>
</tr>
<tr>
<td style="width: 156px; text-align: center;">
<asp:Label ID="labEmail" runat="server" Text="Email地址" Font-Size="9pt" Width="56px"></asp:Label></td>
<td style="width: 233px; text-align: left;">
<asp:TextBox ID="txtEmail" runat="server" Font-Size="9pt"></asp:TextBox></td>
<td style="width: 136px">
<asp:RegularExpressionValidator ID="revEmail" runat="server" ErrorMessage="用户输入的Email地址格式有误" ControlToValidate="txtEmail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator></td>
</tr>
<tr>
<td style="width: 156px; text-align: center;">
<asp:Label ID="labAddress" runat="server" Text="住 址" Font-Size="9pt" Width="40px"></asp:Label></td>
<td style="width: 233px; text-align: left;">
<asp:TextBox ID="txtAddress" runat="server" Font-Size="9pt"></asp:TextBox></td>
<td style="width: 136px">
</td>
</tr>
<tr>
<td style="width: 156px; text-align: center;">
<asp:Label ID="labPostCode" runat="server" Text="邮 编" Font-Size="9pt" Width="40px"></asp:Label></td>
<td style="width: 233px; text-align: left;">
<asp:TextBox ID="txtPostCode" runat="server" Font-Size="9pt"></asp:TextBox></td>
<td style="width: 136px">
<asp:RegularExpressionValidator ID="revPostCode" runat="server" ControlToValidate="txtPostCode"
ErrorMessage="邮编格式有误" ValidationExpression="\d{6}">*</asp:RegularExpressionValidator></td>
</tr>
<tr>
<td style="width: 156px; text-align: center;">
<asp:Label ID="labQQ" runat="server" Text="QQ号" Font-Size="9pt" Width="33px"></asp:Label></td>
<td style="width: 233px; text-align: left;">
<asp:TextBox ID="txtQQ" runat="server" Font-Size="9pt"></asp:TextBox></td>
<td style="width: 136px">
</td>
</tr>
<tr>
<td style="width: 156px; text-align: center;"></td>
<td style="width: 233px; text-align: left;">
<asp:Button ID="btnAdd" runat="server" Text="添加" OnClick="btnAdd_Click" Font-Size="9pt" />
<asp:Button ID="btnCancel" runat="server" Text="取消" OnClick="btnCancel_Click" Font-Size="9pt" CausesValidation="False" />
<asp:Button ID="btnBack" runat="server" Text="返回" Font-Size="9pt" CausesValidation="False" OnClick="btnBack_Click" /></td>
<td style="width: 136px">
</td>
</tr>
</table>
</td>
</tr>
</table>
<table style="width: 755px;height: 74px;" align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 755px; height: 74px;">
<uc2:BBSFooter ID="BBSFooter1" runat="server" />
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -