📄 addstu.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="addstu.aspx.cs" Inherits="addstu" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table border="1" style="width: 539px; height: 282px">
<tr>
<td colspan="3" style="height: 21px; text-align: center">
<strong><span style="font-size: 24pt">学生管理——添加新生</span></strong></td>
</tr>
<tr>
<td colspan="3">
学号<br />
<asp:TextBox ID="txtNo" runat="server" Width="107px"></asp:TextBox>
<asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="学号已存在,请重新输入" ControlToValidate="txtNo" OnServerValidate="CustomValidator1_ServerValidate"></asp:CustomValidator></td>
</tr>
<tr>
<td style="width: 151px">
姓名<br />
<asp:TextBox ID="txtName" runat="server" Width="105px"></asp:TextBox></td>
<td style="width: 161px">
性别<asp:RadioButtonList ID="radlSex" runat="server" RepeatDirection="Horizontal">
<asp:ListItem Selected="True">男</asp:ListItem>
<asp:ListItem>女</asp:ListItem>
</asp:RadioButtonList></td>
<td style="width: 126px">
民族<br />
<asp:DropDownList ID="dropNation" runat="server">
</asp:DropDownList></td>
</tr>
<tr>
<td style="width: 151px">
出生日期(1986-06-16)<asp:TextBox ID="txtBirthday" runat="server"></asp:TextBox></td>
<td style="width: 161px">
入学时间(2005-09-01)<asp:TextBox ID="txtTime" runat="server"></asp:TextBox></td>
<td style="width: 126px">
班级<br />
<asp:DropDownList ID="dropClass" runat="server">
</asp:DropDownList></td>
</tr>
<tr>
<td style="width: 151px">
家庭住址<br />
<asp:TextBox ID="txtAddress" runat="server"></asp:TextBox></td>
<td style="width: 161px">
</td>
<td style="width: 126px">
</td>
</tr>
<tr>
<td colspan="3">
备注<br />
<asp:TextBox ID="txtElse" runat="server" Height="54px" TextMode="MultiLine" Width="435px"></asp:TextBox></td>
</tr>
<tr>
<td colspan="3" style="height: 43px; text-align: center">
<asp:LinkButton ID="lbtnOK" runat="server" OnClick="lbtnOK_Click">确 定</asp:LinkButton> <asp:LinkButton
ID="lbtnReset" runat="server" OnClick="lbtnReset_Click">重 置</asp:LinkButton> <asp:LinkButton ID="lbtnBack"
runat="server" OnClick="lbtnBack_Click">返 回</asp:LinkButton></td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -