📄 adduser.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddUser.aspx.cs" Inherits="novel.UserManage.AddUser" %>
<!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 background="../image/background.jpg">
<form id="form1" runat="server">
<div>
<table border="1" style="width: 581px; height: 1px; text-align: center">
<tr>
<td colspan="4" style="height: 22px; text-align: center">
<span style="font-size: 12px">增加用户</span></td>
</tr>
<tr>
<td style="width: 77px; height: 21px; text-align: left">
<span style="font-size: 12px">用户名:</span></td>
<td style="width: 161px; height: 21px">
<asp:TextBox ID="Text_name" runat="server"></asp:TextBox></td>
<td colspan="2" style="width: 324px; height: 21px; text-align: left">
<span style="font-size: 12px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Text_name"
ErrorMessage="请输入用户名" Font-Size="12px"></asp:RequiredFieldValidator>用户名须在10字符以内,支持非空格字符组合</span></td>
</tr>
<tr>
<td style="width: 77px; height: 21px; text-align: left">
<span style="font-size: 12px">密码:</span></td>
<td style="width: 161px; height: 21px">
<asp:TextBox ID="Text_password" runat="server" TextMode="Password" Width="147px"></asp:TextBox></td>
<td colspan="2" style="width: 324px; height: 21px; text-align: left">
<span style="font-size: 12px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Text_password"
ErrorMessage="请输入密码" Font-Size="12px"></asp:RequiredFieldValidator>长度为4-10的字符,支持非空格字符组合</span></td>
</tr>
<tr>
<td style="width: 77px; height: 21px; text-align: left">
<span style="font-size: 12px">再次输入密码:</span></td>
<td style="width: 161px; height: 21px">
<asp:TextBox ID="Text_password1" runat="server" TextMode="Password"></asp:TextBox></td>
<td colspan="2" style="width: 324px; height: 21px; text-align: left">
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="Text_password"
ControlToValidate="Text_password1" ErrorMessage="两次密码不一致" Font-Size="12px"></asp:CompareValidator></td>
</tr>
<tr>
<td style="width: 77px; height: 21px; text-align: left">
<span style="font-size: 12px">角色:</span></td>
<td style="font-size: 12pt; width: 161px; height: 21px; text-align: left">
<asp:DropDownList ID="RoleName" runat="server" Width="90px">
<asp:ListItem>系统管理员</asp:ListItem>
<asp:ListItem>普通用户</asp:ListItem>
</asp:DropDownList></td>
<td colspan="2" style="font-size: 12pt; width: 324px; height: 21px; text-align: left">
<span style="color: #000000">
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="RoleName"
ErrorMessage="注意选择这项,您的修改将会影响您的权限" Font-Size="12px"></asp:RequiredFieldValidator></span></td>
</tr>
<tr style="font-size: 12pt; color: #000000">
<td style="width: 77px; height: 21px; text-align: left">
<span style="font-size: 12px">电子邮件:</span></td>
<td style="width: 161px; height: 21px">
<asp:TextBox ID="Text_mail" runat="server"></asp:TextBox></td>
<td colspan="2" style="width: 324px; height: 21px; text-align: left">
<span style="font-size: 12px">
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="Text_mail"
ErrorMessage="邮箱地址格式错误" Font-Size="12px" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>请填写您有效的E-MAIL</span></td>
</tr>
<tr style="font-size: 12pt">
<td style="width: 77px; height: 11px; text-align: left">
<span style="font-size: 12px">验证码:</span></td>
<td style="width: 161px; height: 11px; text-align: left">
<asp:TextBox ID="Text_val" runat="server" Width="116px"></asp:TextBox>
<asp:Image ID="Image1" runat="server" ImageUrl="check.aspx" /></td>
<td colspan="2" style="width: 324px; height: 11px; text-align: left">
<span style="font-size: 12px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="Text_val"
ErrorMessage="请输入验证码" Font-Size="12px"></asp:RequiredFieldValidator>注意看清楚右边的图片</span></td>
</tr>
<tr>
<td colspan="4" style="height: 23px; text-align: left">
</td>
</tr>
<tr>
<td colspan="4" style="height: 21px; text-align: center">
<asp:Button ID="Button1" runat="server" Font-Size="12px" OnClick="Button1_Click"
Text="增加" />
<asp:Button ID="Button2" runat="server" Font-Size="12px" OnClick="Button2_Click"
Text="取消" /></td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -