C# 分页 aspnetpager
来源:互联网 发布:如何提升淘宝店铺销量 编辑:程序博客网 时间:2024/06/05 15:29
http://www.webdiyer.com/aspnetpager/
下载安装包,解压后将AspNetPagerCN-7.5.1\Demo\Bin拷贝到根目录
AspNetPagerCN-7.5.1\Demo\App_Code 拷贝到对应目录
AspNetPagerCN-7.5.1\Demo\App_Data 拷贝到对应目录
将原来AspNetPagerCN-7.5.1\Demo\Web.Config拷贝到
<pages validateRequest="false" > <controls> <add tagPrefix="webdiyer" namespace="Wuqi.Webdiyer" assembly="AspNetPager" /> </controls> </pages>
网站web.config中.
修改App_Code\SqlHelper.cs
public static readonly string CONN_STRING = ConfigurationManager.ConnectionStrings["SQLConStr"].ConnectionString;// public static readonly string CONN_STRING = ConfigurationManager.ConnectionStrings["SqlConnection"].ConnectionString;
实际应用enap\list.aspx.cs可修改
void bindData() { Repeater1.DataSource = SqlHelper.ExecuteReader(CommandType.StoredProcedure, ConfigurationManager.AppSettings["pagedSPName"], new SqlParameter("@startIndex", AspNetPager1.StartRecordIndex), new SqlParameter("@endIndex", AspNetPager1.EndRecordIndex)); Repeater1.DataBind(); }
此函数的存储过程为自定义的存储过程,默认的是在AspNetPagerCN-7.5.1\Demo\Web.Config定义的
<appSettings><!-- <add key="pagedSPName" value="P_GetPagedOrders2005" />--> </appSettings>
阅读全文
0 0
- C# 分页 aspnetpager
- C# Repeater、webdiyer:AspNetPager分页 AspNetPager分页样式
- AspNetPager分页
- AspNetPager分页
- AspNetPager分页
- AspNetPager 分页
- AspNetPager 分页
- aspnetpager分页
- AspNetPager分页
- aspnetpager分页
- AspNetPager分页
- AspNetPager 分页
- C#方法 Repeater、webdiyer:AspNetPager分页、存储过程分页
- C# ASP.NET AspNetPager对DataList控件分页
- AspNetPager分页控件
- AspNetPager分页控件
- AspNetPager分页控件
- AspNetPager分页简单应用
- KSGT
- ntp时间服务器源码安装
- 二叉树遍历-后序遍历(非递归)
- dp-水题
- 快速排序介绍与分析
- C# 分页 aspnetpager
- 地理信息系统矢量数据的组织形式 第二章:数字表面模型
- canvas学习总结四:绘制虚线
- 增加MAVLink协议 自定义消息.md
- Android Studio使用小技巧:提取方法代码片段
- 3932: [CQOI2015]任务查询系统 Time Limit: 20 Sec Memory Limit: 512 MB Submit: 3412 Solved: 1098 [Submit]
- iOS 使用全能的初始化方法
- 计算机导论第二课笔记一
- 浅谈SAP CRM开发——技术概念、与ECC 系列产品区别