📄 select_del_examcard.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="select_del_examcard.aspx.cs" Inherits="teaching_manage_examcard_set_select_del_examcard" %>
<!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 colspan="5">
准考证信息查询</td>
</tr>
<tr>
<td style="width: 100px">
班级</td>
<td style="width: 100px">
<asp:DropDownList ID="examcard_class" 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: 100px">
姓名</td>
<td style="width: 100px">
<asp:DropDownList ID="examcard_name" runat="server" DataSourceID="SqlDataSource2"
DataTextField="student_name" DataValueField="student_ID">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:XTeamConnectionString %>"
SelectCommand="SELECT [class_ID], [student_ID], [student_name] FROM [student_info] WHERE ([class_ID] = @class_ID)">
<SelectParameters>
<asp:ControlParameter ControlID="examcard_class" DefaultValue="1" Name="class_ID"
PropertyName="SelectedValue" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
</td>
<td style="width: 100px">
<asp:Button ID="btn_select" runat="server" OnClick="btn_select_Click" Text="搜索" /></td>
</tr>
<tr>
<td colspan="5" style="height: 117px">
<asp:GridView ID="examcardView" runat="server" AutoGenerateColumns="False" Width="530px" DataKeyNames="examcard_ID" OnRowCancelingEdit="examcardView_RowCancelingEdit" OnRowDataBound="examcardView_RowDataBound" OnRowDeleting="examcardView_RowDeleting" OnRowEditing="examcardView_RowEditing" OnRowUpdating="examcardView_RowUpdating">
<Columns>
<asp:BoundField DataField="examcard_ID" HeaderText="examcard_ID" Visible="False" />
<asp:BoundField DataField="examcard_type" HeaderText="类型" />
<asp:BoundField DataField="examcard_num" HeaderText="准考证号码" />
<asp:CommandField ShowEditButton="True" />
<asp:CommandField ShowDeleteButton="True" />
</Columns>
</asp:GridView>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -