当前位置:编程学习 > C#/ASP.NET >>

aspnetpager分页

DataList里面aspnetpager怎么实现分页啊? --------------------编程问答-------------------- 跟gridview用法一样啊, --------------------编程问答-------------------- ASPNETPAGER1_CHANGEED(....)
{
BIND();
}
--------------------编程问答-------------------- 用法都一样吧 --------------------编程问答-------------------- 请下载示例项目自己参考一下:http://www.webdiyer.com/controls/aspnetpager --------------------编程问答-------------------- 还是一样绑定啊

protected void AspNetPager1_PageChanged(object sender, EventArgs e)
    {
        DoBind();//这里指定数据源啊 多少页啊什么什么的
    }
--------------------编程问答--------------------   可以使用PagedDataSource实现分页 --------------------编程问答-------------------- aspnetpager结合pagedatasource用 --------------------编程问答--------------------
引用 4 楼 webdiyer 的回复:
请下载示例项目自己参考一下:http://www.webdiyer.com/controls/aspnetpager


去自己下载demo --------------------编程问答-------------------- 和repeater里面的用法一样

 table = croupPurchaseOrder.SelectMyOrder(name, 5);
   AspNetPager1.RecordCount = table.Rows.Count;
 protected void AspNetPager1_PageChanged(object sender, EventArgs e)
        {
                       table = croupPurchaseOrder.GetGroupPurAspnetPager(AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1), AspNetPager1.PageSize, HttpUtility.UrlDecode(ck.Values["username"], System.Text.Encoding.Default), 0);
            Repeater1.DataSource = table;
            Repeater1.DataBind();
        }
--------------------编程问答-------------------- 网上有很多百度一下 --------------------编程问答--------------------
引用楼主 niedongdong 的回复:
DataList里面aspnetpager怎么实现分页啊?
 网上很多 不在乎就是:配置数据源,配置总行数,页显示数等 --------------------编程问答-------------------- int intRecordCount = 0;
        IList<News> list = NewsManager.GetNewsByPage("newsId", strFilter, this.pageNews.PageSize, this.pageNews.CurrentPageIndex, out intRecordCount);
        this.pageNews.RecordCount = intRecordCount;
        this.dlNews.DataSource = list;
        this.dlNews.DataBind(); --------------------编程问答--------------------
引用 11 楼 zhulong1111 的回复:
引用楼主 niedongdong 的回复:
DataList里面aspnetpager怎么实现分页啊?
网上很多 不在乎就是:配置数据源,配置总行数,页显示数等
[] --------------------编程问答-------------------- [img src="/upload/20131225/W___7516ZHPPSIGT.gif" /]

[img s="" /] --------------------编程问答--------------------
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,