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

📄 regl.ascx

📁 学生寝室管理系统
💻 ASCX
📖 第 1 页 / 共 2 页
字号:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="regl.ascx.cs" Inherits="regl" %>
<asp:Panel ID="Panel1" runat="server" Height="50px" Width="650px" style="font-size: 14px">
    <table id="TABLE1" language="javascript" onclick="return TABLE1_onclick()" style="border-right: white;
        border-top: white; border-left: white; width: 671px; cursor: hand;
        border-bottom: white; height: 198px; font-size: 14px;">
        <tr>
            <td align="left" colspan="4" style="font-weight: bold; font-size: 15px; color: white;
                height: 26px; background-color: black">
                学生基本资料(注意标记(*)项目为必填项)</td>
        </tr>
        <tr style="color: #000000">
            <td align="right" colspan="2" style="height: 9px">
                真实姓名:</td>
            <td align="left" colspan="2" style="width: 545px; height: 9px">
                <asp:TextBox ID="txtname" runat="server"></asp:TextBox>(*)<asp:RequiredFieldValidator
                    ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtname" Display="Dynamic"
                    Font-Bold="False">"用户名称"必须填写</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="a_yzzz2" runat="server" ControlToValidate="txtname"
                    ErrorMessage="中文" ValidationExpression="^[\u4E00-\u9FA5]{1,5}"></asp:RegularExpressionValidator></td>
        </tr>
        <tr style="color: #000000; font-size: 12pt;">
            <td align="right" colspan="2" style="height: 19px; font-size: 14px;">
                登录密码:</td>
            <td align="left" colspan="2" style="width: 545px; height: 19px; font-size: 14px;">
                <asp:TextBox ID="txtuserpwd" runat="server" TextMode="Password"></asp:TextBox>(*)<asp:RequiredFieldValidator
                    ID="RequiredFieldValidator13" runat="server" ControlToValidate="txtuserpwd" Display="Dynamic"
                    ErrorMessage="RequiredFieldValidator">"登录密码"必填</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" ControlToValidate="txtuserpwd"
                    Display="Dynamic" ErrorMessage="密码必须在6-20位之间" Font-Size="13px"
                    ValidationExpression=".{6,20}"></asp:RegularExpressionValidator></td>
        </tr>
        <tr style="color: #000000; font-size: 12pt;">
            <td align="right" colspan="2" style="height: 19px; font-size: 14px;">
                确认密码:</td>
            <td align="left" colspan="2" style="width: 545px; height: 19px; font-size: 14px;">
                <asp:TextBox ID="txtuserpwdagina" runat="server" EnableTheming="True" TextMode="Password"></asp:TextBox>(*)<asp:CompareValidator
                    ID="CompareValidator2" runat="server" ControlToCompare="txtuserpwd" ControlToValidate="txtuserpwdagina"
                    ErrorMessage="CompareValidator">请输入相同的密码</asp:CompareValidator></td>
        </tr>
        <tr style="color: #000000; font-size: 12pt;">
            <td align="right" colspan="2" style="height: 9px; font-size: 14px;">
                性别:</td>
            <td align="left" colspan="2" style="width: 545px; height: 9px">
                <asp:DropDownList ID="ddlsex" runat="server" style="font-weight: normal; color: black;">
                    <asp:ListItem>请选择</asp:ListItem>
                    <asp:ListItem>男</asp:ListItem>
                    <asp:ListItem>女</asp:ListItem>
                </asp:DropDownList></td>
        </tr>
        <tr style="color: #000000; font-size: 12pt;">
            <td align="right" colspan="2" style="height: 9px; font-size: 14px;">
                年龄:</td>
            <td align="left" colspan="2" style="width: 545px; height: 9px; font-size: 14px;">
                <asp:TextBox ID="txtage" runat="server"></asp:TextBox>(*)<asp:RangeValidator ID="RangeValidator2"
                    runat="server" ControlToValidate="txtage" Display="Dynamic" ErrorMessage="年龄超出范围(1-150)"
                    MaximumValue="150" MinimumValue="1" Type="Integer"></asp:RangeValidator><asp:RequiredFieldValidator
                        ID="RequiredFieldValidator11" runat="server" ControlToValidate="txtage" ErrorMessage="年龄要填写哦?"></asp:RequiredFieldValidator></td>
        </tr>
        <tr style="color: #000000; font-size: 12pt;">
            <td align="right" colspan="2" style="height: 5px; font-size: 14px;">
                民族:</td>
            <td align="left" colspan="2" style="width: 545px; height: 5px">
                <asp:DropDownList ID="ddlminzu" runat="server" DataSourceID="SqlDataSource2" DataTextField="minzu"
                    DataValueField="minzu" Style="color: black;">
                </asp:DropDownList><asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="Data Source=.;Initial Catalog=studenthome;Integrated Security=True"
                    ProviderName="System.Data.SqlClient" SelectCommand="SELECT [minzu] FROM [minzu]">
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr style="color: #000000; font-size: 12pt;">
            <td align="right" colspan="2" style="height: 9px; font-size: 14px;">
                出生日期:</td>
            <td align="left" colspan="2" style="width: 545px; height: 9px; font-size: 14px;">
                <asp:DropDownList ID="ddlyear" runat="server" style="font-weight: normal; color: black;">
                </asp:DropDownList>
                年<asp:DropDownList ID="ddlmonth" runat="server" OnSelectedIndexChanged="ddlmonth_SelectedIndexChanged" style="font-weight: normal; color: black;" EnableTheming="True">
                </asp:DropDownList>
                月<asp:DropDownList ID="ddlday" runat="server" style="font-weight: normal;">
                </asp:DropDownList>日</td>
        </tr>
        <tr style="color: #000000; font-size: 12pt;">
            <td align="right" colspan="2" style="height: 9px">
                家庭住址:</td>
            <td align="left" colspan="2" style="width: 545px; height: 9px; font-size: 14px;">
                <asp:TextBox ID="txtaddress" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtaddress"
                    ErrorMessage="RequiredFieldValidator">家庭“住址”不能为空</asp:RequiredFieldValidator></td>
        </tr>
        <tr style="color: #000000; font-size: 12pt;">
            <td align="right" colspan="2" style="height: 9px; font-size: 14px;">
                家庭电话号码:</td>
            <td align="left" colspan="2" style="width: 545px; height: 9px; font-size: 14px;">
                <asp:TextBox ID="txtuserphone" runat="server"></asp:TextBox>(*)<asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="txtuserphone"
                    Display="Dynamic" ErrorMessage="家庭电话号码必填"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                        ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtuserphone"
                        ErrorMessage="请输入7位或8位的家庭电话号码" ValidationExpression="(\(\d{3,4}\)|\d{3,4}-)?\d{7,8}"></asp:RegularExpressionValidator></td>
        </tr>
        <tr style="color: #000000; font-size: 12pt;">
            <td align="right" colspan="2" style="height: 9px; font-size: 14px;">
                E-mail地址:</td>
            <td align="left" colspan="2" style="width: 545px; height: 9px; font-size: 14px;">
                <asp:TextBox ID="txtuseremail" runat="server"></asp:TextBox>(*)<asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="txtuseremail"
                    Display="Dynamic" ErrorMessage="E-mail地址不能为空"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtuseremail"
                    Display="Dynamic" ErrorMessage="E-mail地址输入有误" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
        </tr>
        <tr style="color: #000000; font-size: 12pt;">
            <td align="right" colspan="2" style="height: 9px; font-size: 14px;">
                在宿舍的身份:</td>
            <td align="left" colspan="2" style="width: 545px; height: 9px">
                <asp:DropDownList ID="ddlhomeshenfen" runat="server" style="font-weight: normal;">
                    <asp:ListItem Selected="True">请选择</asp:ListItem>
                    <asp:ListItem>室员</asp:ListItem>
                    <asp:ListItem>寝室长</asp:ListItem>
                </asp:DropDownList></td>
        </tr>
        <tr style="color: #000000; font-size: 12pt;">
            <td align="left" colspan="4" style="font-weight: bold; font-size: 15px; color: white;
                height: 9px; background-color: black">
                班级信息填写(注意标记(*)项目为必填项)</td>
        </tr>
        <tr style="color: #000000">
            <td align="right" colspan="2" style="height: 9px">
                学号:</td>
            <td align="left" colspan="2" style="width: 545px; height: 9px; color: black;">
                <asp:TextBox ID="txtuserid" runat="server"></asp:TextBox>(*)<asp:CustomValidator
                    ID="CustomValidator1" runat="server" ControlToValidate="txtuserid" Display="Dynamic"
                    ErrorMessage="该学号经存在,请检查你输入的学号" OnServerValidate="CustomValidator1_ServerValidate"></asp:CustomValidator><asp:RequiredFieldValidator
                        ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtuserid" Display="Dynamic"
                        ErrorMessage="学号必填"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtuserid"
                    Display="Dynamic" ErrorMessage='"学号"前面请不要输入零数字,并且为6-15个数字组成,不要使用特殊字符' ValidationExpression="^[1-9]\w{5,14}$"></asp:RegularExpressionValidator></td>

⌨️ 快捷键说明

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