程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> .NET網頁編程 >> C# >> C#入門知識 >> 基礎查詢,多選,全選,分頁功能,多選分頁

基礎查詢,多選,全選,分頁功能,多選分頁

編輯:C#入門知識

基礎查詢,多選,全選,分頁功能,多選分頁


     <script type="text/javascript">

 

        $(document).ready(function () {//預加載

            $('#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 = "整體.aspx?page=" + $("#hidPage").val() + "&score=" + $(this).val() + "&search=" + $("#searchBox").val();

               

        });

        });

            <asp:DropDownList ID="DropDownList1" runat="server">

                <asp:ListItem Text="查詢分數" Value="0"></asp:ListItem>

                <asp:ListItem Text="90分以上" Value="90 and 100"></asp:ListItem>

            </asp:DropDownList>

 <asp:CheckBox ID="chkAll" runat="server" Text="全選" />

後台代碼的取值 string score = HttpContext.Current.Request["score"];

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved