⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adduser.aspx

📁 会议室管理系统,本系统是我大学毕业时候的毕业设计,一次通过的!
💻 ASPX
字号:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="adduser.aspx.cs" Inherits="adduser" Title="添加用户-会议室预定系统" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table border="0" style="width: 633px">
        <tr>
            <td align="center" colspan="2" style="font-weight: bold; font-size: 15px; color: white;
                height: 22px; background-color: #a43737;">
                添加用户</td>
        </tr>
        <tr>
            <td align="right" style="width: 288px">
                用户名称:</td>
            <td align="left">
                <asp:TextBox ID="txtname" runat="server" Width="150px"></asp:TextBox><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtname" Display="Dynamic"
                    ErrorMessage="RequiredFieldValidator">不能为空</asp:RequiredFieldValidator><asp:CustomValidator
                        ID="CustomValidator1" runat="server" ControlToValidate="txtname" Display="Dynamic"
                        ErrorMessage="CustomValidator" OnServerValidate="CustomValidator1_ServerValidate">该用户已经存在了</asp:CustomValidator><asp:RegularExpressionValidator
                            ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtname" Display="Dynamic"
                            ErrorMessage="RegularExpressionValidator" ValidationExpression="^[\u4E00-\u9FA50-9a-zA-Z].{1,11}$">2-12个字符,一个汉字算2个字符</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td align="right" style="width: 288px; height: 30px">
                密 &nbsp; &nbsp;码:</td>
            <td align="left" style="height: 30px">
                <asp:TextBox ID="txtpwd" runat="server" TextMode="Password" Width="150px"></asp:TextBox><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtpwd" Display="Dynamic"
                    ErrorMessage="RequiredFieldValidator">不能为空</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td align="right" style="width: 288px; height: 30px">
                确认密码:</td>
            <td align="left" style="height: 30px">
                <asp:TextBox ID="txtpwdagina" runat="server" TextMode="Password" Width="150px"></asp:TextBox>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtpwd"
                    ControlToValidate="txtpwdagina" Display="Dynamic" ErrorMessage="CompareValidator">两次输入的密码不一致</asp:CompareValidator></td>
        </tr>
        <tr>
            <td align="right" style="width: 288px; height: 30px">
                身&nbsp; &nbsp; 份:</td>
            <td align="left" style="height: 30px">
                <asp:DropDownList ID="ddlrole" runat="server">
                    <asp:ListItem>普通用户</asp:ListItem>
                    <asp:ListItem>管理员</asp:ListItem>
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td align="center" colspan="2" style="height: 22px">
                <asp:Button ID="Button2" runat="server" Height="20px" OnClick="Button2_Click" Text="添 加"
                    Width="48px" />
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                <asp:Button ID="Button1" runat="server" CausesValidation="False" Height="20px" OnClick="Button1_Click"
                    Text="清 空" Width="48px" /></td>
        </tr>
        <tr>
            <td align="center" colspan="2">
                <asp:Label ID="Labmessage" runat="server" Style="font-weight: bold; color: red"></asp:Label>
            </td>
        </tr>
    </table>
</asp:Content>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -