📄 set_teacher_head.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="set_teacher_head.aspx.cs" Inherits="teacher_head_set_set_teacher_head" %>
<!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>
<table border="1" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 100px">
教学组长设置</td>
<td style="width: 100px">
</td>
<td style="width: 100px">
</td>
<td style="width: 100px">
</td>
<td style="width: 100px">
</td>
</tr>
<tr>
<td style="width: 100px">
部门</td>
<td style="width: 100px">
<asp:DropDownList ID="dept_down" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1"
DataTextField="dept_name" DataValueField="dept_ID">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:XTeamConnectionString %>"
SelectCommand="SELECT [dept_ID], [dept_name] FROM [dept]"></asp:SqlDataSource>
</td>
<td style="width: 100px">
教师</td>
<td style="width: 100px">
<asp:DropDownList ID="teacher_down" runat="server" DataSourceID="SqlDataSource2"
DataTextField="teacher_name" DataValueField="teacher_ID">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:XTeamConnectionString %>"
SelectCommand="SELECT [teacher_ID], [teacher_name] FROM [teacher_info] WHERE ([dept_ID] = @dept_ID)">
<SelectParameters>
<asp:ControlParameter ControlID="dept_down" DefaultValue="1" Name="dept_ID" PropertyName="SelectedValue"
Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
</td>
<td style="width: 100px">
<asp:Button ID="set_btn" runat="server" OnClick="set_btn_Click" Text="设置为该部门教学组长" /></td>
</tr>
<tr>
<td style="width: 100px; height: 20px;">
</td>
<td style="width: 100px; height: 20px;">
</td>
<td style="width: 100px; height: 20px;">
</td>
<td style="width: 100px; height: 20px;">
</td>
<td style="width: 100px; height: 20px;">
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -