log.ascx

来自「寝室管理系统」· ASCX 代码 · 共 63 行

ASCX
63
字号
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="log.ascx.cs" Inherits="webcontrols_log" %>
                        <table border="0" style="width: 668px; text-align: center;">
                            <tr>
                                <td style="height: 20px; width: 61px;">
                                    <div align="right" style="font-size: 15px">
            学号:</div>
                                </td>
                                <td style="width: 194px; height: 20px">
                                    <div align="left">
                                        <asp:TextBox ID="txtuserid" runat="server" BackColor="WhiteSmoke"></asp:TextBox><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator1" 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>&nbsp;</div>
                                </td>
                                <td style="height: 20px" width="94">
                                    <div align="center">
                <asp:DropDownList ID="DropDownList1" runat="server" BackColor="WhiteSmoke" >
                    <asp:ListItem Value="室员">室员</asp:ListItem><asp:ListItem Value="寝室长">寝室长</asp:ListItem>
                    <asp:ListItem Value="管理员">管理员</asp:ListItem>
                </asp:DropDownList></div>
                                </td>
                                <td style="height: 20px; width: 55px;">
                                    <div align="right" style="font-size: 15px">
                密码:</div>
                                </td>
                                <td style="height: 20px" width="171">
                                    <div align="left">
            <div align="left">
                <div align="left">
                    <div align="left">
                        <asp:TextBox ID="txtuserpwd" runat="server" BackColor="WhiteSmoke" TextMode="Password"></asp:TextBox><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtuserpwd" Display="Dynamic"
                            ErrorMessage='"密码"不能为空'>*</asp:RequiredFieldValidator>&nbsp;</div>
                </div>
            </div>
                                    </div>
                                </td>
                                <td style="height: 20px; width: 36px;">
                                    <div align="center">
                <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="登录" style="font-weight: normal; font-size: 14px; color: black; font-family: 'Courier New'" Width="51px" Height="22px" BackColor="WhiteSmoke" />&nbsp;</div>
                                </td>
                                <td style="height: 20px" width="106">
                                    <div align="center">
                                        <asp:Button ID="Button2" runat="server" BackColor="WhiteSmoke" CausesValidation="False"
                                            Height="22px" PostBackUrl="~/reg.aspx" Text="学生注册" Width="72px" />&nbsp;</div>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="7" style="height: 78px">
                                    &nbsp;<asp:Label ID="Label1" runat="server" ForeColor="Red" style="font-weight: bold; font-size: 14px"></asp:Label><br />
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" style="font-weight: bold; font-size: 13px" />
                                </td>
                            </tr>
                        </table>
&nbsp;
            <div align="left">
                <div align="left">
                    <div align="center">
                        &nbsp;</div>
                </div>
            </div>

⌨️ 快捷键说明

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