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

📄 adduser.aspx

📁 这是asp.net^和Visual C++Sharp编写的串并口通讯的书籍 源代码
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddUser.aspx.cs" Inherits="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>
    <form id="form1" runat="server">
    <div>
        <table align="center" cellpadding="0" cellspacing="0" background="第8章 简单做一下8.2.2.jpg" bordercolordark="#ff00ff" bordercolorlight="#ff00ff">
            <tr>
                <td align="center" colspan="2" style="border-right: lime thin outset; border-top: lime thin outset;
                    border-left: lime thin outset; width: 497px; border-bottom: lime thin outset;
                    height: 59px">
                </td>
            </tr>
            <tr>
         
            <td align="center" colspan=2 style="width: 497px; border-right: lime thin outset; border-top: lime thin outset; border-left: lime thin outset; border-bottom: lime thin outset; height: 14px;" >
                <asp:Label ID="Label1" runat="server" Font-Size="9pt" Text="以下内容为必填,请正确填写,否则无法完成注册" BackColor="White" ForeColor="Red"></asp:Label>
               </td>
            </tr>
            <tr>
                <td style="width: 497px; border-right: lime thin outset; border-top: lime thin outset; border-left: lime thin outset; border-bottom: lime thin outset; height: 274px;" colspan=2>
                    <table align="center" cellpadding="0" cellspacing="0">
                        <tr>
                            <td rowspan="7" style="width: 53px; text-align: center">
                            </td>
                            <td style="width: 94px; height: 25px;" align="left">
                                <asp:Label ID="labLoginName" runat="server" Font-Size="9pt" Text="会员登录名" Width="66px"></asp:Label></td>
                            <td style="width: 224px; text-align: left; height: 25px;" align="left">
                                <asp:TextBox ID="txtLoginName" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox>
                                <asp:Button ID="btnTest" runat="server" CausesValidation="False" Font-Size="9pt"
                                    Text="检验" Width="42px" OnClick="btnTest_Click" /></td>
                            <td style="width: 149px; height: 25px" align="left">
                                <asp:RequiredFieldValidator ID="rfvLoginName" runat="server" ControlToValidate="txtLoginName"
                                    Font-Size="9pt" Height="1px" Width="117px">会员登录名不能为空</asp:RequiredFieldValidator></td>
                        </tr>
                        <tr atomicselection="true">
                            <td  align="left" style="height: 17px">
                                <asp:Label ID="labSex" runat="server" Font-Size="9pt" Text="性别" Width="27px"></asp:Label></td>
                            <td style="width: 224px; text-align: left; height: 17px;" align="left">
                                <asp:DropDownList ID="ddlSex" runat="server" Font-Size="9pt" Width="123px" Height="21px">
                                    <asp:ListItem>男</asp:ListItem>
                                    <asp:ListItem>女</asp:ListItem>
                                </asp:DropDownList></td>
                            <td style="width: 149px; height: 17px;" align="left">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="性别不能为空"
                                    Font-Size="9pt" ControlToValidate="ddlSex"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td style="width: 94px; height: 23px;" align="left">
                                <asp:Label ID="labPwd" runat="server" Font-Size="9pt" Text="密码" Width="27px"></asp:Label></td>
                            <td style="width: 224px; text-align: left; height: 23px;" align="left">
                                <asp:TextBox ID="txtPwd" runat="server" Font-Size="9pt" Width="123px" Height="21px" TextMode="Password"></asp:TextBox></td>
                            <td style="width: 149px; height: 23px;" align="left">
                                <asp:RequiredFieldValidator ID="rfvPwd" runat="server" ControlToValidate="txtPwd"
                                    Font-Size="9pt" Width="104px">会员密码不能为空</asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 94px; height: 24px">
                                <asp:Label ID="Label4" runat="server" Font-Size="9pt" Text="确认密码"></asp:Label></td>
                            <td align="left" style="width: 224px; height: 24px; text-align: left">
                                <asp:TextBox ID="txtSurePassword" runat="server" TextMode="Password" Width="121px"></asp:TextBox></td>
                            <td align="left" style="width: 149px; height: 24px">
                                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPwd"
                                    ControlToValidate="txtSurePassword" ErrorMessage="两次密码输入不一致" Font-Size="9pt"></asp:CompareValidator></td>
                        </tr>
                        <tr>
                            <td style="width: 94px; height: 30px;" align="left">
                                <asp:Label ID="labQuePwd" runat="server" Font-Size="9pt" Text="密码问题" Width="52px"></asp:Label></td>
                            <td style="width: 224px; text-align: left; height: 30px; " align="left">
                                <asp:TextBox ID="txtQuePwd" runat="server" Font-Size="9pt" Width="123px" Height="21px"></asp:TextBox></td>
                            <td style="width: 149px; height: 30px;" align="left">
                                <asp:RequiredFieldValidator ID="rfvQuePwd" runat="server" ControlToValidate="txtQuePwd"
                                    Font-Size="9pt" Width="136px">密码提示问题不能为空</asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td style="width: 94px;" align="left">
                                <asp:Label ID="labAnsPwd" runat="server" Font-Size="9pt" Text="密码提示答案" Width="72px"></asp:Label></td>
                            <td style="width: 224px; text-align: left" align="left">
                                <asp:TextBox ID="txtAnsPwd" runat="server" Font-Size="9pt" Width="123px" Height="21px"></asp:TextBox></td>
                            <td style="width: 149px" align="left">
                                <asp:RequiredFieldValidator ID="rfvAnsPwd" runat="server" ControlToValidate="txtAnsPwd"
                                    Font-Size="9pt" Width="135px">提示问题答案不有为空</asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td style="width: 94px;" align="left">
                                <asp:Label ID="labEmail" runat="server" Font-Size="9pt" Text="E-mail" Width="45px"></asp:Label></td>
                            <td style="width: 224px; text-align: left" align="left">
                                <asp:TextBox ID="txtEmail" runat="server" Font-Size="9pt" Width="123px" Height="21px"></asp:TextBox></td>
                            <td style="width: 149px" align="left">
                                <asp:RegularExpressionValidator ID="revEmail" runat="server" ControlToValidate="txtEmail"
                                    Font-Size="9pt" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                    Width="132px">E-mail格式不正确</asp:RegularExpressionValidator></td>
                        </tr>
                        <tr>
                            <td colspan="2" rowspan="2" style="text-align: center; height: 29px;">
                            </td>
                            <td rowspan="2" style="width: 224px; text-align: left; height: 29px;">
                                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;
                                <asp:Button ID="Button2" runat="server" Font-Size="9pt" OnClick="Button2_Click" Text="注册" />
                                <asp:Button ID="Button1" runat="server" Font-Size="9pt" OnClick="Button1_Click" Text="取消" /></td>
                            <td rowspan="2" style="width: 149px; height: 29px;">
                            </td>
                        </tr>
    
                    </table>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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