有没有用过AspNetPager这个分页控件啊?

wuxingmaxail 2006-09-08 04:55:05
我下了个,安装了,但是不会用,要怎么 用? 它自动帮我安装到工具箱里了!

我把它拖了出来,但是还有些属性要怎么 调,还要写什么? 看它功能好像很多,但是不会用!

...全文
169 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
xcz1943 2006-09-08
  • 打赏
  • 举报
回复
帮助里面写的很详细!
scow 2006-09-08
  • 打赏
  • 举报
回复
this.PageSize = 20;
this.Width = Unit.Pixel(1000);
this.ShowCustomInfoSection = ShowCustomInfoSection.Left;
this.ShowInputBox = ShowInputBox.Always;
this.NumericButtonTextFormatString = "[{0}]";
this.HorizontalAlign = HorizontalAlign.Right;
this.CustomInfoText = " RecordCounts:<font color=\"red\"><b>" + this.RecordCount.ToString() + "</b></font>";

if (this.CurrentPageIndex != this.PageCount)
this.CustomInfoText += "  / <font color=\"blue\"><b>" + Convert.ToString((this.CurrentPageIndex - 1) * this.PageSize + 1) + "</b></font> -- <font color='blue'><b>" + Convert.ToString(this.PageSize * this.CurrentPageIndex) + "</b></font>";
else
this.CustomInfoText += "  / <font color=\"blue\"><b>" + Convert.ToString((this.CurrentPageIndex - 1) * this.PageSize + 1) + "</b></font> -- <font color='blue'><b>" + this.RecordCount.ToString() + "</b></font>";

然后绑定时设置
Pager.RecordCount和Pager.CurrentPageIndex
flashlove2008 2006-09-08
  • 打赏
  • 举报
回复
不看源代码用不了
wuxingmaxail 2006-09-08
  • 打赏
  • 举报
回复

哪有给源码? 在用的能不能告诉我下怎么 用啊!
hw_hlj 2006-09-08
  • 打赏
  • 举报
回复
我也在用
hw_hlj 2006-09-08
  • 打赏
  • 举报
回复
看看它的源程序就知道了
wuxingmaxail 2006-09-08
  • 打赏
  • 举报
回复
人都上哪去了?
wuxingmaxail 2006-09-08
  • 打赏
  • 举报
回复
帮忙啊!

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧