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

📄 createuser.aspx

📁 AjaxMembership示例代码,Membership的使用方法
💻 ASPX
字号:
<%@ Page Language="C#" MasterPageFile="~/Index/MyMaster.master" AutoEventWireup="true" CodeFile="CreateUser.aspx.cs" Inherits="Index_CreateUser" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
        &nbsp;
        <table align="center" atomicselection="true" bgcolor="#ccffff" border="1" bordercolor="#000000" bordercolordark="#003366">
            <tr>
                <td style="width: 113px; height: 21px;">
                    登录名</td>
                <td style="width: 217px; height: 21px;">
                    <asp:TextBox ID="Uname" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Uname"
                        ErrorMessage="请输入登录名"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 113px">
                    密码</td>
                <td style="width: 217px">
                    <asp:TextBox ID="Upwd" runat="server"></asp:TextBox>
                    </td>
               
            </tr>
            <tr>
                <td style="width: 113px">
                    确认密码</td>
                <td style="width: 217px">
                    <asp:TextBox ID="UCpwd" runat="server"></asp:TextBox>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="Upwd"
                        ControlToValidate="UCpwd" ErrorMessage="密码和确认密码必须一致"></asp:CompareValidator></td>
             
            </tr>
            <tr>
                <td style="width: 113px">
                    安全问题</td>
                <td style="width: 217px">
                    <asp:TextBox ID="SQ" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="SQ"
                        ErrorMessage="请输入安全问题"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 113px">
                    答案</td>
                <td style="width: 217px">
                    <asp:TextBox ID="Ans" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="Ans"
                        ErrorMessage="请输入答案"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 113px">
                    QQ</td>
                <td style="width: 217px">
                    <asp:TextBox ID="QQ" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="QQ"
                        ErrorMessage="请输入QQ号"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 113px">
                    MSN</td>
                <td style="width: 217px">
                    <asp:TextBox ID="MSN" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="MSN"
                        ErrorMessage="请输入合法的信箱地址" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
            </tr>
            <tr>
                <td align="center" colspan="2">
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="注册" /></td>
            </tr>
        </table>
    
    </div>
</asp:Content>

⌨️ 快捷键说明

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