studClassFind.aspx
(完整代码) 3KB<%@ Page Language="C#" MasterPageFile="~/stud.master" AutoEventWireup="true" CodeFile="studClassFind.aspx.cs" Inherits="classFind" Title="学生版-班级查询" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table style="width: 739px;height:350px" bgcolor="#99CCFF" border="1">
<tr>
<td colspan="2" style="height: 60px" valign="top" align="center">
<asp:ScriptManager id="ScriptManager1" runat="server">
</asp:ScriptManager><asp:UpdatePanel id="UpdatePanel1" runat="server"><contenttemplate>
<TABLE style="WIDTH: 242px" align="center" border="1" ><TBODY><TR><TD style="WIDTH: 86px; HEIGHT: 25px"><DIV align=right>院系信息:</DIV></TD><TD style="WIDTH: 143px; HEIGHT: 25px"><DIV align=left><asp:DropDownList id="ddlDept" runat="server" Width="143px" AutoPostBack="True" DataSourceID="SqlDataSource1" DataTextField="deptName" DataValueField="deptID"></asp:DropDownList></DIV></TD></TR><TR><TD style="WIDTH: 86px; HEIGHT: 25px"><DIV align=right>班级信息:</DIV></TD><TD style="WIDTH: 143px; HEIGHT: 25px"><DIV align=left>
<asp:DropDownList id="ddlClass" runat="server" Width="139px"
DataSourceID="SqlDataSource2" DataTextField="classID" DataValueField="classID"
Height="20px"></asp:DropDownList></DIV></TD></TR></TBODY></TABLE>
</contenttemplate>
</asp:UpdatePanel>
<asp:Button ID="btn_OK" runat="server" Font-Bold="True" ForeColor="Black" OnClick="btn_OK_Click"
Text="查 询" /></td>
</tr>
<tr>
<td colspan="2" style="height: 288px" valign="top" align="center">
<asp:GridView ID="GridView1" runat="server" CellPadding="3"
GridLines="Horizontal" Width="580px"
BackColor="White" BorderColor="#E7E7FF" BorderWidth="1px"
Height="119px" BorderStyle="None" >
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C"
HorizontalAlign="Right" />
<RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
<SelectedRowStyle BackColor="#738A9C" ForeColor="#F7F7F7" Font-Bold="True" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
<AlternatingRowStyle BackColor="#F7F7F7" />
<SortedAscendingCellStyle BackColor="#F4F4FD" />
<SortedAscendingHeaderStyle BackColor="#5A4C9D" />
<SortedDescendingCellStyle BackColor="#D8D8F0" />
<SortedDescendingHeaderStyle BackColor="#3E3277" />
</asp:GridView>
<br />
<asp:Panel ID="Panel1" runat="server" Height="50px" Visible="False" Width="125px">
<asp:Label ID="Label2" runat="server" Font-Bold="True" ForeColor="Red" Height="29px"
Text="对不起,你搜索的班级不存在!" Width="210px"></asp:Label></asp:Panel>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:studHomeConnectionString %>"
SelectCommand="SELECT DISTINCT [deptID], [deptName] FROM [dept]"></asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:studHomeConnectionString %>"
SelectCommand="SELECT [classID] FROM [class] WHERE ([deptID] = @deptID)">
<SelectParameters>
<asp:ControlParameter ControlID="ddlDept" Name="deptID" PropertyName="SelectedValue"
Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
</td>
</tr>
</table>
</asp:Content>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。