📄 admin_multiselectlists.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="admin_MultiSelectLists.aspx.cs" Inherits="Admin_admin_MultiSelectLists" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script language="javascript">
function CheckBoxSel(CheckAll)
{
var items = document.getElementsByTagName("input");
for(i=0; i<items.length;i++)
{
if(items[i].type=="checkbox")
{
items[i].checked = CheckAll.checked;
}
}
}
</script>
<table border="0" style="FONT-SIZE: 12px; FONT-FAMILY: Tahoma; BORDER-COLLAPSE: collapse; width: 688px; height: 246px;" cellspacing="0" cellpadding="0" align="center">
<tr >
<td align="center">
多选题信息
</td>
</tr>
<tr >
<td align="center">
考试科目:<asp:DropDownList ID="ddlCourse" runat="server" AutoPostBack="True" Width="154px" OnSelectedIndexChanged="ddlCourse_SelectedIndexChanged" >
</asp:DropDownList></td>
</tr>
<tr>
<td style="height: 150px">
<asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333"
GridLines="Vertical" Height="162px" Style="position: static" Width="100%" AutoGenerateColumns="False" BorderWidth="1px" OnRowDeleting="GridView1_RowDeleting" DataKeyNames="MultiProblemID">
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<EditRowStyle BackColor="#999999" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
<Columns>
<asp:TemplateField HeaderText="选择">
<ItemTemplate>
<asp:CheckBox ID="xuanze" runat="server" Style="position: static" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="编号" Visible="False">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Style="position: static" Text=<%#Eval("MultiProblemID") %>></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="题目">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Style="position: static" Text=<%#Eval("Title") %>></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:HyperLinkField DataNavigateUrlFields="MultiProblemID" DataNavigateUrlFormatString="admin_MultiSelectAdd.aspx?MultiProblemID={0}"
HeaderText="详细..." Text="详细..." />
<asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
</Columns>
</asp:GridView>
</td>
</tr>
<tr>
<td style="height: 24px">
<input type="checkbox" onclick="CheckBoxSel(this)"/>全选/全不选
<asp:Button ID="btnDel" runat="server" OnClick="btnDel_Click" Style="position: static"
Text="删除" /></td>
</tr>
</table>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -