📄 createuser.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/Admin/Resource/MasterPage.master" AutoEventWireup="true"
CodeFile="CreateUser.aspx.cs" Inherits="Admin_CreateUser" Title="Untitled Page" %>
<%@ Register Src="UserMenu.ascx" TagName="UserMenu" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<uc1:UserMenu ID="UserMenu1" runat="server"></uc1:UserMenu>
<div id="childMenu">
<asp:LinkButton ID="lbtnCreateUser" runat="server" OnClick="CreateUser_Click">创建</asp:LinkButton><a href="#" onclick="javascript:history.back(-1)">取消</a>
</div>
<div class="listHeader">
创建新用户:</div>
<div class="listItem">
选择管理员类型:<asp:DropDownList ID="ddlAdminType" runat="server" Visible=false>
<asp:ListItem Value="Administrators">超级管理员</asp:ListItem>
<asp:ListItem Value="CategorySetting">栏目级管理员</asp:ListItem>
<asp:ListItem Value="CategoryDocumentManagers">栏目、文档编辑员</asp:ListItem>
</asp:DropDownList>
</div>
<div class="listItem">
用 户 名:
<asp:TextBox ID="tbUserName" runat="server" MaxLength="64" Columns="20"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbUserName"
ErrorMessage="*"></asp:RequiredFieldValidator></div>
<div class="listItem">密 码:
<asp:textbox id="tbPassword" runat="server" TextMode="Password" Columns="20" MaxLength="64"></asp:textbox>
<asp:RequiredFieldValidator id="RequiredFieldValidator3" runat="server" ControlToValidate="tbPassword" ErrorMessage="*"></asp:RequiredFieldValidator>
</div>
<div class="listItem">确认密码:
<asp:textbox id="tbPassword2" runat="server" TextMode="Password" Columns="20" MaxLength="64"></asp:textbox>
<asp:CompareValidator id="CompareValidator1" runat="server" ControlToValidate="tbPassword2" ErrorMessage="两次输入的密码不一致"
ControlToCompare="tbPassword"></asp:CompareValidator>
</div>
<div class="listItem">邮 箱:
<asp:textbox id="tbEmail" runat="server" MaxLength="64" Columns="20"></asp:textbox>
<asp:RequiredFieldValidator id="RequiredFieldValidator4" runat="server" ControlToValidate="tbEmail" ErrorMessage="*"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ErrorMessage="Email格式不正确" ControlToValidate="tbEmail"
ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
</div>
<asp:Button ID="btnCreateUser" runat="server" Text="创建用户" OnClick="CreateUser_Click">
</asp:Button>
<asp:Label ID="lblFailedMessage" runat="server" ForeColor="Red"></asp:Label>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -