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

📄 adminuseradd.aspx

📁 学生寝室管理系统
💻 ASPX
📖 第 1 页 / 共 3 页
字号:
                                                                <div align="left">
                                                                    <asp:DropDownList ID="ddlhomesex" runat="server" Style="font-weight: normal">
                                                                        <asp:ListItem>请选择</asp:ListItem>
                                                                        <asp:ListItem>男生</asp:ListItem>
                                                                        <asp:ListItem>女生</asp:ListItem>
                                                                    </asp:DropDownList></div>
                                                            </td>
                                                            <td nowrap="nowrap" style="width: 135px; height: 17px">
                                                                <div align="right">
                                                                    住第几栋楼</div>
                                                            </td>
                                                            <td nowrap="nowrap" style="height: 17px">
                                                                <div align="left">
                                                                    <asp:DropDownList ID="ddlhomeflood" runat="server" DataSourceID="SqlDataSource1"
                                                                        DataTextField="home" DataValueField="home">
                                                                    </asp:DropDownList><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Data Source=.;Initial Catalog=studenthome;Integrated Security=True"
                                                                        ProviderName="System.Data.SqlClient" SelectCommand="SELECT DISTINCT [home] FROM [homedetail]">
                                                                    </asp:SqlDataSource>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td nowrap="nowrap" style="width: 90px; height: 17px">
                                                                <div align="right">
                                                                    寝室号码:</div>
                                                            </td>
                                                            <td nowrap="nowrap" style="width: 365px; height: 17px">
                                                                <div align="left">
                                                                    <asp:TextBox ID="txthomehaoma" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                                                                        ID="RequiredFieldValidator6" runat="server" ControlToValidate="txthomehaoma"
                                                                        Display="Dynamic" ErrorMessage="宿舍号码要填写"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                                                            ID="RegularExpressionValidator5" runat="server" ControlToValidate="txthomehaoma"
                                                                            ErrorMessage="请输入3位数的宿舍号码" ValidationExpression="\d{3}"></asp:RegularExpressionValidator></div>
                                                            </td>
                                                            <td nowrap="nowrap" style="width: 135px; height: 17px">
                                                                <div align="right">
                                                                    几人间寝室:</div>
                                                            </td>
                                                            <td nowrap="nowrap" style="height: 17px">
                                                                <div align="left">
                                                                    <asp:DropDownList ID="ddlhomecount" runat="server" Style="font-weight: normal">
                                                                        <asp:ListItem>请选择</asp:ListItem>
                                                                        <asp:ListItem>4人</asp:ListItem>
                                                                        <asp:ListItem>6人</asp:ListItem>
                                                                        <asp:ListItem>8人</asp:ListItem>
                                                                    </asp:DropDownList></div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td nowrap="nowrap" style="width: 90px">
                                                                <div align="right">
                                                                    寝室电话号码:</div>
                                                            </td>
                                                            <td nowrap="nowrap" style="width: 365px">
                                                                <div align="left">
                                                                    <asp:TextBox ID="txthomephone" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                                                                        ID="RequiredFieldValidator7" runat="server" ControlToValidate="txthomephone"
                                                                        Display="Dynamic" ErrorMessage="宿舍电话不能为空"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                                                            ID="RegularExpressionValidator2" runat="server" ControlToValidate="txthomephone"
                                                                            ErrorMessage="请输入7位或8位的宿舍电话号码" ValidationExpression="(\(\d{3,4}\)|\d{3,4}-)?\d{7,8}"></asp:RegularExpressionValidator>&nbsp;</div>
                                                            </td>
                                                            <td nowrap="nowrap" style="width: 135px">
                                                                <div align="right">
                                                                    是/否同班同学住一起:</div>
                                                            </td>
                                                            <td nowrap="nowrap">
                                                                <div align="left">
                                                                    <asp:DropDownList ID="DropDownList4" runat="server">
                                                                        <asp:ListItem Selected="True">请选择</asp:ListItem>
                                                                        <asp:ListItem>是</asp:ListItem>
                                                                        <asp:ListItem Value="否"></asp:ListItem>
                                                                    </asp:DropDownList></div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="center" colspan="4" nowrap="nowrap" style="height: 21px" background="images/admin_bg_1.gif">
                                                                <div align="right">
                                                                </div>
                                                                <div align="left">
                                                                </div>
                                                                <div align="right">
                                                                </div>
                                                                <div align="left" style="text-align: center">
                                                                    <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="添 加" />
                                                                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                                                    <asp:Button ID="Button4" runat="server" CausesValidation="False" OnClick="Button4_Click"
                                                                        Text="重 置" /></div>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </asp:Panel>
                            <asp:Panel ID="Panel3" runat="server" Height="50px" Width="125px" Visible="False">
                                <div align="center">
                                    <table border="0" style="width: 986px">
                                        <tr>
                                            <td nowrap="nowrap" style="width: 971px; height: 30px;">
                                                <div align="center">
                                                    <table border="0" style="width: 978px"><tr>
                                                        </tr>
                                                        <tr>
                                                            <td align="center" bgcolor="#ccccff" colspan="4" nowrap="nowrap" style="height: 17px">
                                                                <div align="right">
                                                                </div>
                                                                <div align="left">
                                                                </div>
                                                                <div align="right">
                                                                </div>
                                                                <div align="center" style="text-align: center">
                                                                恭喜!
                                                                <asp:Label ID="Label1" runat="server" ForeColor="Red" Style="font-weight: bold; font-size: 16px;
                                                                    color: red" Text="Label"></asp:Label>同学的信息,已经成功的插入到数据库中了!
                                                                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/adminuserinfo.aspx"
                                                                        Style="text-decoration: none">返回看看</asp:HyperLink></div>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </asp:Panel>
                            &nbsp;&nbsp;</div>
                    </td>
                </tr>
            </table>
</asp:Content> 

⌨️ 快捷键说明

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