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

推荐订阅源

博客园_首页
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Proofpoint News Feed
G
Google Developers Blog
B
Blog
Engineering at Meta
Engineering at Meta
阮一峰的网络日志
阮一峰的网络日志
The Register - Security
The Register - Security
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 叶小钗
The Cloudflare Blog
The Hacker News
The Hacker News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
雷峰网
雷峰网
F
Fortinet All Blogs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
H
Hackread – Cybersecurity News, Data Breaches, AI and More
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
T
Threat Research - Cisco Blogs
A
About on SuperTechFans
量子位
Recorded Future
Recorded Future
博客园 - 三生石上(FineUI控件)
H
Help Net Security
Help Net Security
Help Net Security
P
Palo Alto Networks Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Troy Hunt's Blog
W
WeLiveSecurity
V
Vulnerabilities – Threatpost
T
The Exploit Database - CXSecurity.com
Know Your Adversary
Know Your Adversary
Apple Machine Learning Research
Apple Machine Learning Research
Scott Helme
Scott Helme
N
News | PayPal Newsroom
AWS News Blog
AWS News Blog
D
DataBreaches.Net
Blog — PlanetScale
Blog — PlanetScale
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
腾讯CDC
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
TaoSecurity Blog
TaoSecurity Blog
GbyAI
GbyAI
Y
Y Combinator Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
D
Docker

博客园 - boy119

ISAPI_Rewrite二级域名的问题 制作dnn皮肤的扩展插件 中国DNN团队博客群开通,欢迎大家加入 NETMECHANIC.COM测试网页特性 让IIS服务器支持中文文件名 asp.net中文环境的安装方法 这个post收集可以借鉴的网站界面 从dvbbs转移到cnforums的经验 还有4个wallop邀请,需要的朋友请报名! DNN的空间占用问题 Dnn3的新闻文章模块和一些看法 access转换为sqlserver的注意事项 cnforums1.2中“在过去的 24 小时内最活跃的 10 位会员”和“论坛统计信息”空白的解决方法 翻译网站 解决dnn3.06 UserOnLine/Survey不能正常运行的bug dnn3模块——FlashPlayer测试版 DotNetNuke Version 3.0.5 ( Public Beta 2 )发布 不错的城市 dnn 3.0.4中discussion的bug
DNN文章模块使用datagrid分页心得
boy119 · 2005-01-13 · via 博客园 - boy119

使用datagrid分页本来是很简单的时候,但是在dnn中却没有常规的错误提示,以至于一头雾水。当我给datagrid添加OnPageIndexChanged="dg_PageIndexChnaged"后,出现错误提示:模块不能加载,ID相同之类的。后台又在一个单独的项目中进行同样的操作。原来将Private Sub dg_PageIndexChnaged(ByVal source As System.Object, ByVal e As System.Web.UI.WebControls.DataGridPageChangedEventArgs) Handles grdArticles.PageIndexChanged
改为Protected Sub dg_PageIndexChnaged(ByVal source As System.Object, ByVal e As System.Web.UI.WebControls.DataGridPageChangedEventArgs) Handles grdArticles.PageIndexChanged
即可,真是失之毫厘,谬以千里。希望高人们不要见笑。

其实在datagrid中进行分页只需要两步即可

1、

        Protected Sub dg_PageIndexChnaged(ByVal sender As System.Object, ByVal e As System.Web.UI.WebControls.DataGridPageChangedEventArgs)

            grdArticles.CurrentPageIndex = e.NewPageIndex

            BindList()

        End Sub

2、datagrid属性中加入OnPageIndexChanged="dg_PageIndexChnaged"