新聞中心
這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
分頁(yè)插件jquery.pagination.js
采用Jquery無(wú)刷新分頁(yè)插件jquery.pagination.js 實(shí)現(xiàn)無(wú)刷新分頁(yè)效果
成都創(chuàng)新互聯(lián)公司2013年至今,是專業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項(xiàng)目成都做網(wǎng)站、網(wǎng)站設(shè)計(jì)、外貿(mào)營(yíng)銷網(wǎng)站建設(shè)網(wǎng)站策劃,項(xiàng)目實(shí)施與項(xiàng)目整合能力。我們以讓每一個(gè)夢(mèng)想脫穎而出為使命,1280元新巴爾虎左做網(wǎng)站,已為上家服務(wù),為新巴爾虎左各地企業(yè)和個(gè)人服務(wù),聯(lián)系電話:18980820575
1.插件參數(shù)列表
http://www.dtan.so
2.頁(yè)面內(nèi)容:
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
-
Porschev----無(wú)刷新翻頁(yè) -
-
-
-
-
Posrchev----無(wú)刷新分頁(yè)
-
編號(hào) 名稱
3.頁(yè)面后臺(tái)內(nèi)容:
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- public partial class _Default : System.Web.UI.Page
- {
- public string pageCount = string.Empty; //總條目數(shù)
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
- pageCount = new PagerTestBLL.PersonManager().GetPersonCount().ToString();
- }
- }
- }
4.Handler中的內(nèi)容:
- <%@ WebHandler Language="C#" Class="PagerHandler" %>
- using System;
- using System.Web;
- using System.Collections.Generic;
- using System.Text;
- public class PagerHandler : IHttpHandler {
- public void Proce***equest (HttpContext context) {
- context.Response.ContentType = "text/plain";
- string str = string.Empty;
- //具體的頁(yè)面數(shù)
- int pageIndex;
- int.TryParse(context.Request["pageIndex"], out pageIndex);
- //頁(yè)面顯示條數(shù)
- int size = Convert.ToInt32(context.Request["pageSize"]);
- if (pageIndex == 0)
- {
- pageIndex = 1;
- }
- int count;
- List
list = new PagerTestBLL.PersonManager().GetAllPerson(size, pageIndex, "", out count); - StringBuilder sb = new StringBuilder();
- foreach (PagerTestModels.Person p in list)
- {
- sb.Append("
");"); - sb.Append(p.Id.ToString());
- sb.Append("
"); - sb.Append(p.Name);
- sb.Append("
- }
- str = sb.ToString();
- context.Response.Write(str);
- }
- public bool IsReusable {
- get {
- return false;
- }
- }
- }
5.實(shí)現(xiàn)效果圖:
當(dāng)前題目:分頁(yè)插件jquery.pagination.js
URL標(biāo)題:http://www.ef60e0e.cn/article/gsscdp.html