简单Google样式分页控件

  1. 下载控件DLL,GoogleCode.
  2. 引入控件
    1 <%@ Register Assembly="TinyToolBox" Namespace="TinyMS.UI" TagPrefix="tm" %>

     

  3. 使用控件
    1 <tm:TinyPager ID="TinyPager1" runat="server" TotalRecords="289" PageSize="20"
    2 onclick="TinyPager1_Click"/>

     

  4. 页码处理事件
    1 protected void TinyPager1_Click(object sender, TinyMS.UI.PagerEventArgs e)
    2 {
    3 this.Label1.Text = "" + e.PageNo + "";
    4 }

     

  5. 这是个纯粹的分页控件,没有结合其它数据容器,TotalRecords需要自己设置。如有兴趣修改可到GoogleCode上SVN下载源码。。

posted on 2010-03-08 11:25  TinyMS  阅读(408)  评论(0)    收藏  举报

导航