惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
Help Net Security
Help Net Security
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
C
Cisco Blogs
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
L
LINUX DO - 热门话题
Security Latest
Security Latest
A
Arctic Wolf
G
GRAHAM CLULEY
月光博客
月光博客
S
Securelist
D
Docker
J
Java Code Geeks
T
Troy Hunt's Blog
T
Tenable Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
SecWiki News
SecWiki News
S
Security @ Cisco Blogs
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
LINUX DO - 最新话题
Recent Commits to openclaw:main
Recent Commits to openclaw:main
aimingoo的专栏
aimingoo的专栏
博客园 - 【当耐特】
H
Heimdal Security Blog
The Hacker News
The Hacker News
博客园 - 三生石上(FineUI控件)
Application and Cybersecurity Blog
Application and Cybersecurity Blog
N
Netflix TechBlog - Medium
Vercel News
Vercel News
Forbes - Security
Forbes - Security
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
B
Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
S
Secure Thoughts
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Check Point Blog
云风的 BLOG
云风的 BLOG
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Blog of Author Tim Ferriss
L
Lohrmann on Cybersecurity
F
Full Disclosure
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Proofpoint News Feed

博客园 - kingeric

关于OA流程相关数据表的设计 没事干写写流程审批数据库的设计 sqlserver:某年份某月份 是否在某时间段内的函数 修改KindEditor编辑器 版本3.5.1 夏天到了,什么时候园子的T恤可以出来? Flash大文件上传(带进度条) NET打包時加入卸载功能 - kingeric - 博客园 c#水晶报表注册码 VS2005项目的安装与布署 让.Net程序脱离.net framework框架运行的方法(转载) 超级实用且不花哨的js代码大全 一级MS软件下载 MyTextBoxControls正式推出第一个版本T1.1.0.1 排列组合与回溯算法 采用正则表达式获取图片地址 Myweb新闻系统,正式推出第一个版本 T1.1.0 弹出一个层屏蔽页面登录 常用到的一些正则表达式 c#:文件对话框(FileDialog)
MyPager分页控件 正式推出第一个版本 T 1.1.5
kingeric · 2007-08-16 · via 博客园 - kingeric

MyPager分页控件 正式推出第一个版本 T 1.1.5


调用方式(以vs2003为例):
1、选择vs“工具”菜单-》“添加/移除工具箱项(X)...”
2、在弹出的自定义工具箱中,选择.Net Framework
3、选择“浏览”找到你存放MyPager控件的地址,点击“确定”即可。
4、这是你可以在“工具箱”栏中发现多了一个MyPager控件。
5、拉动MyPager控件到页面上即可。

属性:更多属性请自行看属性介绍说明。或者跟我联系!
调用方式,在源码中已经有例子,具体在Demo下的Demo.aspx。


代码部分:

private void GetList()
  {
   string text2 = "demo.mdb";
   string text1 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + System.Web.HttpContext.Current.Server.MapPath(text2) + ";";
   OleDbConnection ConnAcc = new OleDbConnection(text1);
   ConnAcc.Open();

   string RecordCountSQL = "select count(*) From TT_Article ";
   OleDbCommand command1 = new OleDbCommand(RecordCountSQL, ConnAcc);
   MyPaper1.RecordCount = (int)command1.ExecuteScalar();

   string SearchSQL = "select * From TT_Article ";
   DataSet set1 = new DataSet();
   OleDbDataAdapter adapter1 = new OleDbDataAdapter(SearchSQL, ConnAcc);

   adapter1.Fill(set1, (MyPaper1.CurrentPageIndex-1)*MyPaper1.PageSize, MyPaper1.PageSize, "TableName");

   DataGrid1.DataSource = set1;
   DataGrid1.DataBind();

   //MyPaper1.DescriptionText = "共有"+MyPaper1.RecordCount +"条记录,当前"+MyPaper1.CurrentPageIndex+"/"+MyPaper1.PageTotal;


   set1.Clear();

   ConnAcc.Close();

  }