Basic query, multiple choice, all selection, paging function, multiple choice pages
<Script type = "text/javascript">
$ (Document). ready (function () {// pre-load
$ ('# Chkall'). click (
Function (){
$ ("INPUT [type = 'checkbox']"). attr ('checked', $ ('# chkall'). is (': checked '));
});
// $ ('# Chkall'). click (
Function (){
$ ("Input [name = 'chkitem ']"). each (function (){
This. checked = $ ('# chkall'). is (': checked ');
});
});
$ ("# DropDownList1"). change (function (){
Window. location. href = "Overall. aspx? Page = "+ $ (" # hidPage "). val () + "& score =" + $ (this ). val () + "& search =" + $ ("# searchBox "). val ();
});
});
<Asp: DropDownList ID = "DropDownList1" runat = "server">
<Asp: ListItem Text = "query score" Value = "0"> </asp: ListItem>
<Asp: ListItem Text = "90 + points" Value = "90 and 100"> </asp: ListItem>
</Asp: DropDownList>
<Asp: CheckBox ID = "chkAll" runat = "server" Text = "select all"/>
The value of the background code is string score = HttpContext. Current. Request ["score"].