📄 adminuseradd.aspx
字号:
<%@ Page Language="C#" MasterPageFile ="~/Admin.master" AutoEventWireup="true" CodeFile="adminuseradd.aspx.cs" Inherits="adminuseradd" Title ="添加学生基本资料" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table border="0" bgcolor="#FFFFFF" class="tableBorder" style="width: 57%">
<tr>
<th class="tableHeaderText" colspan="12" style="height: 26px">
用户管理->添加学生基本资料</th>
</tr>
<tr>
<td nowrap="nowrap" style="width: 970px; height: 328px">
<div align="center">
<asp:Panel ID="Panel1" runat="server" Height="50px" Width="125px">
<table border="0" style="width: 986px">
<tr>
<td align="left" background="images/admin_bg_1.gif" colspan="4" nowrap="nowrap" style="font-weight: bold;
color: white; height: 24px">
学生基本资料填写</td>
</tr>
<tr>
<td nowrap="nowrap" style="width: 63px; height: 23px;">
<div align="right">
真实姓名:</div>
</td>
<td nowrap="nowrap" style="width: 377px; height: 23px;">
<div align="left">
<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></div>
</td>
<td nowrap="nowrap" style="width: 86px; height: 23px;">
<div align="right">
民族:</div>
</td>
<td nowrap="nowrap" style="height: 23px">
<div align="left">
<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>
</div>
</td>
</tr>
<tr>
<td nowrap="nowrap" style="width: 63px">
<div align="right">
登录密码:</div>
</td>
<td nowrap="nowrap" style="width: 377px">
<div align="left">
<asp:TextBox ID="txtuserpwd" runat="server" TextMode="Password"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="txtuserpwd"
Display="Dynamic" ErrorMessage="RequiredFieldValidator" Width="93px">"登录密码"必填</asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" ControlToValidate="txtuserpwd"
Display="Dynamic" ErrorMessage="密码必须在6-20位之间" Font-Size="13px" ValidationExpression=".{6,20}"
Width="133px"></asp:RegularExpressionValidator> </div>
</td>
<td nowrap="nowrap" style="width: 86px">
<div align="right">
家庭住址:</div>
</td>
<td nowrap="nowrap">
<div align="left">
<asp:TextBox ID="txtaddress" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtaddress"
ErrorMessage="RequiredFieldValidator">家庭“住址”不能为空</asp:RequiredFieldValidator></div>
</td>
</tr>
<tr>
<td nowrap="nowrap" style="width: 63px; height: 17px">
<div align="right">
确认密码:</div>
</td>
<td nowrap="nowrap" style="width: 377px; height: 17px">
<div align="left">
<asp:TextBox ID="txtuserpwdagina" runat="server" TextMode="Password"></asp:TextBox><asp:CompareValidator
ID="CompareValidator2" runat="server" ControlToCompare="txtuserpwd" ControlToValidate="txtuserpwdagina"
ErrorMessage="CompareValidator" Style="font-size: 15px" Width="121px">请输入相同的密码</asp:CompareValidator></div>
</td>
<td nowrap="nowrap" style="width: 86px; height: 17px">
<div align="right">
家庭电话:</div>
</td>
<td nowrap="nowrap" style="height: 17px">
<div align="left">
<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></div>
</td>
</tr>
<tr>
<td nowrap="nowrap" style="width: 63px; height: 24px;">
<div align="right">
性别:</div>
</td>
<td nowrap="nowrap" style="width: 377px; height: 24px;">
<div align="left">
<asp:DropDownList ID="ddlsex" runat="server" Style="font-weight: normal; color: black">
<asp:ListItem Selected="True">请选择</asp:ListItem>
<asp:ListItem>男</asp:ListItem>
<asp:ListItem>女</asp:ListItem>
</asp:DropDownList></div>
</td>
<td nowrap="nowrap" style="width: 86px; height: 24px;">
<div align="right">
E-mail地址:</div>
</td>
<td nowrap="nowrap" style="height: 24px">
<div align="left">
<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></div>
</td>
</tr>
<tr>
<td nowrap="nowrap" style="width: 63px">
<div align="right">
年龄:</div>
</td>
<td nowrap="nowrap" style="width: 377px">
<div align="left">
<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></div>
</td>
<td nowrap="nowrap" style="width: 86px">
<div align="right">
宿舍的身份:</div>
</td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -