📄 homefenshu.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="homefenshu.aspx.cs" Inherits="homefenshu" Title="学生寝室管理系统->录入寝室评分" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table border="0" height="136" style="width: 968px; font-size: 14px;">
<tr>
<td colspan="2" nowrap="nowrap" style="height: 17px">
<div align="center" style="font-weight: bold; font-size: 15px; color: black">
学生寝室管理系统->录入寝室评分</div>
</td>
</tr>
<tr>
<td nowrap="nowrap" style="width: 399px; height: 20px">
<div align="right">
学号:</div>
</td>
<td style="height: 20px">
<div align="left">
<asp:TextBox ID="txtuserid" runat="server" ReadOnly="True"></asp:TextBox>
<asp:Label ID="Label1" runat="server" ForeColor="Red" Text="不能修改"></asp:Label></div>
</td>
</tr>
<tr style="font-size: 12pt; color: #000000">
<td style="width: 399px; height: 7px">
<div align="right" style="font-size: 14px">
姓名:</div>
</td>
<td style="height: 7px">
<div align="left">
<asp:TextBox ID="txtusername" runat="server" ReadOnly="True"></asp:TextBox>
<asp:Label ID="Label2" runat="server" ForeColor="Red" Text="不能修改"></asp:Label></div>
</td>
</tr>
<tr style="font-size: 12pt; color: #000000">
<td align="right" style="width: 399px; height: 7px; font-size: 14px;">
宿舍类别:</td>
<td align="left" style="height: 7px">
<asp:DropDownList ID="ddlhomesex" runat="server" Style="font-weight: bold">
<asp:ListItem>请选择</asp:ListItem>
<asp:ListItem>男生</asp:ListItem>
<asp:ListItem>女生</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr style="font-size: 12pt">
<td style="width: 399px; height: 5px">
<div align="right" style="font-size: 14px">
几栋</div>
</td>
<td style="height: 5px" align="left">
<asp:DropDownList ID="DropDownList1" 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 [home] FROM [homedetail]">
</asp:SqlDataSource>
</td>
</tr>
<tr style="font-size: 12pt">
<td align="right" style="width: 399px; height: 14px; font-size: 14px;">
寝室号:</td>
<td align="left" style="height: 14px">
<asp:TextBox ID="txthomehao" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txthomehao"
ErrorMessage="RequiredFieldValidator">"寝室号"不能为空</asp:RequiredFieldValidator></td>
</tr>
<tr style="font-size: 12pt">
<td align="right" style="width: 399px; height: 14px; font-size: 14px;">
几人间宿舍:</td>
<td align="left" style="height: 14px">
<asp:DropDownList ID="ddlhomecount" runat="server" Style="font-weight: bold">
<asp:ListItem Selected="True">请选择</asp:ListItem>
<asp:ListItem>4人</asp:ListItem>
<asp:ListItem>6人</asp:ListItem>
<asp:ListItem>8人</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr style="font-size: 12pt">
<td align="right" style="width: 399px; height: 14px; font-size: 14px;">
宿舍电话号码:</td>
<td align="left" style="height: 14px">
<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></td>
</tr>
<tr style="font-size: 12pt">
<td align="right" rowspan="1" style="width: 399px; height: 26px; font-size: 14px;">
录入寝室评分:</td>
<td align="left" style="height: 26px">
<asp:TextBox ID="txtcontent" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtcontent" Display="Dynamic"
ErrorMessage="RequiredFieldValidator">"评分"要输入哦!</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtcontent"
Display="Dynamic" ErrorMessage="RegularExpressionValidator" ValidationExpression="^[0-9]{1,2}">请输入整数</asp:RegularExpressionValidator></td>
</tr>
<tr style="font-size: 12pt">
<td align="center" colspan="2" style="height: 26px">
<asp:Label ID="Label3" runat="server" Style="font-weight: bold; color: red"></asp:Label></td>
</tr>
<tr style="font-size: 12pt">
<td align="center" colspan="2" style="height: 26px">
<asp:Button ID="Button1" runat="server" BackColor="White" Height="24px" OnClick="Button1_Click"
Style="font-weight: bold" Text="提交" />
<asp:Button ID="Button2" runat="server" BackColor="White" CausesValidation="False"
Height="23px" OnClick="Button2_Click" Style="font-weight: bold" Text="重置" /></td>
</tr>
</table>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -