自定义分页控件,修改自AspNetForums.Controls.Pager

    闲着没什么事情 见AspNetForums.Controls.Pager做得不错 就拿来改改 使得更通用一些
    并加上了一个设计器
    感谢为AspNetForums做出贡献的所有人 是你们的劳动让我的coding生活充满了乐趣.

    源代码行数不少 可从这里 下载 设计器可以从这里 下载
    有什么问题请指教~

    效果截图:

    pager.JPG

    演示代码:
None.gif private   void  Bind_rptItem(  int  year,  int  month )
ExpandedBlockStart.gif
{
InBlock.gif            
int totalCount;
InBlock.gif            
this.postPager.PageSize = 10;
InBlock.gif            DataTable dtPosts 
= Post.GetPostsByYearMonth( year, month, this.postPager.CurrentPageIndex, this.postPager.PageSize, 
                                                    out totalCount  );
InBlock.gif            
this.postPager.TotalRecords = totalCount;
InBlock.gif
InBlock.gif            
this.rptPosts.DataSource = dtPosts;
InBlock.gif            
this.rptPosts.DataBind(  );            
ExpandedBlockEnd.gif}

转载于:https://www.cnblogs.com/ofei/archive/2006/02/02/324862.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值