📄 addsxmd.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ADDSXMD.aspx.cs" Inherits="ADMSXGL" %>
<!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>
<link href="~/css/mm.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div style="text-align: center">
<table style="width: 415px; height: 151px" border="1" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" style="text-align: left; height: 23px;">
升学管理</td>
</tr>
<tr>
<td style="width: 218px; height: 68px;">
班级</td>
<td style="width: 165px; height: 68px;">
<asp:DropDownList ID="class_high" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1" DataTextField="class_name" DataValueField="class_ID">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:XTeamConnectionString %>" SelectCommand="SELECT [class_ID], [class_name] FROM [class]"></asp:SqlDataSource>
</td>
<td style="width: 174px; height: 68px;">
</td>
</tr>
<tr>
<td style="width: 218px">
姓名</td>
<td style="width: 165px">
<asp:DropDownList ID="name_high" runat="server" DataSourceID="SqlDataSource2" DataTextField="student_name" DataValueField="student_ID">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:XTeamConnectionString %>" SelectCommand="SELECT [student_ID], [class_ID], [student_name] FROM [student_info] WHERE ([class_ID] = @class_ID)">
<SelectParameters>
<asp:ControlParameter ControlID="class_high" DefaultValue="1" Name="class_ID" PropertyName="SelectedValue"
Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
</td>
<td style="width: 174px">
</td>
</tr>
<tr>
<td style="width: 218px; height: 101px;">
毕业去向</td>
<td style="width: 165px; height: 101px;">
<asp:TextBox ID="grad" runat="server" Height="140px" TextMode="MultiLine" Width="256px"></asp:TextBox></td>
<td style="width: 174px; height: 101px;">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="内容不能为空"
Height="34px" Width="26px" ControlToValidate="grad"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 218px">
</td>
<td style="width: 165px">
<asp:Button ID="btn_upgrade" runat="server" Text="添加" OnClick="Button1_Click" />
</td>
<td style="width: 174px">
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -