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下载源码。。

相关文章: