资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

分页插件jquery.pagination.js

采用Jquery无刷新分页插件jquery.pagination.js 实现无刷新分页效果

成都创新互联公司2013年至今,是专业互联网技术服务公司,拥有项目成都做网站、网站设计、外贸营销网站建设网站策划,项目实施与项目整合能力。我们以让每一个梦想脱颖而出为使命,1280元新巴尔虎左做网站,已为上家服务,为新巴尔虎左各地企业和个人服务,联系电话:18980820575

 

1.插件参数列表

分页插件jquery.pagination.js

 

  http://www.dtan.so

2.页面内容:

 

 

[c-sharp] view plaincopyprint?
  1. <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>  
  2.   
  3.   
  4.   
  5.     Porschev----无刷新翻页      
  6.       
  7.           
  8.          
  9.       
  10.       
  11.       
  12.   
  13.   
  14.   
  15.   

    Posrchev----无刷新分页

      
  
  •     
  •                
  •               
  •                 编号  
  •                 名称               
  •                                                                                                            
  •      
  •     
  •   
  •   
  •   
  •    
  •  

    3.页面后台内容:

    [c-sharp] view plaincopyprint?
    1. using System;  
    2. using System.Collections.Generic;  
    3. using System.Linq;  
    4. using System.Web;  
    5. using System.Web.UI;  
    6. using System.Web.UI.WebControls;  
    7. public partial class _Default : System.Web.UI.Page   
    8. {  
    9.     public string pageCount = string.Empty; //总条目数  
    10.     protected void Page_Load(object sender, EventArgs e)  
    11.     {  
    12.         if (!IsPostBack)  
    13.         {  
    14.            pageCount = new PagerTestBLL.PersonManager().GetPersonCount().ToString();  
    15.         }  
    16.     }  
    17. }  

     

    4.Handler中的内容:

    [c-sharp] view plaincopyprint?
    1. <%@ WebHandler Language="C#" Class="PagerHandler" %>  
    2. using System;  
    3. using System.Web;  
    4. using System.Collections.Generic;  
    5. using System.Text;  
    6. public class PagerHandler : IHttpHandler {  
    7.       
    8.     public void Proce***equest (HttpContext context) {  
    9.         context.Response.ContentType = "text/plain";  
    10.         string str = string.Empty;  
    11.           
    12.         //具体的页面数  
    13.         int pageIndex;  
    14.         int.TryParse(context.Request["pageIndex"], out pageIndex);  
    15.         //页面显示条数  
    16.         int size = Convert.ToInt32(context.Request["pageSize"]);  
    17.           
    18.         if (pageIndex == 0)  
    19.         {  
    20.             pageIndex = 1;  
    21.         }  
    22.           
    23.         int count;  
    24.         List list = new PagerTestBLL.PersonManager().GetAllPerson(size, pageIndex, "", out count);  
    25.           
    26.         StringBuilder sb = new StringBuilder();  
    27.         foreach (PagerTestModels.Person p in list)  
    28.         {              
    29.             sb.Append("");  
    30.             sb.Append(p.Id.ToString());  
    31.             sb.Append("");  
    32.             sb.Append(p.Name);  
    33.             sb.Append("");  
    34.         }  
    35.         str = sb.ToString();  
    36.         context.Response.Write(str);       
    37.     }  
    38.    
    39.     public bool IsReusable {  
    40.         get {  
    41.             return false;  
    42.         }  
    43.     }  
    44. }  

     

    5.实现效果图:

    分页插件jquery.pagination.js


    当前题目:分页插件jquery.pagination.js
    网页地址:http://cdkjz.cn/article/gsscdp.html
    返回首页 了解更多建站资讯
    多年建站经验

    多一份参考,总有益处

    联系快上网,免费获得专属《策划方案》及报价

    咨询相关问题或预约面谈,可以通过以下方式与我们联系

    业务热线:400-028-6601 / 大客户专线   成都:13518219792   座机:028-86922220