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

推荐订阅源

I
Intezer
V
Vulnerabilities – Threatpost
Google Online Security Blog
Google Online Security Blog
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
AWS News Blog
AWS News Blog
G
GRAHAM CLULEY
P
Privacy & Cybersecurity Law Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
Cybersecurity and Infrastructure Security Agency CISA
N
News | PayPal Newsroom
T
Tenable Blog
Spread Privacy
Spread Privacy
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
S
Secure Thoughts
P
Privacy International News Feed
IT之家
IT之家
Project Zero
Project Zero
T
The Blog of Author Tim Ferriss
Engineering at Meta
Engineering at Meta
大猫的无限游戏
大猫的无限游戏
博客园_首页
GbyAI
GbyAI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
量子位
雷峰网
雷峰网
Apple Machine Learning Research
Apple Machine Learning Research
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
N
Netflix TechBlog - Medium
Martin Fowler
Martin Fowler
NISL@THU
NISL@THU
I
InfoQ
D
DataBreaches.Net
有赞技术团队
有赞技术团队
K
Kaspersky official blog
Security Latest
Security Latest
The Register - Security
The Register - Security
Hugging Face - Blog
Hugging Face - Blog
S
Security @ Cisco Blogs
P
Proofpoint News Feed
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
AI
AI
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Proofpoint News Feed
Security Archives - TechRepublic
Security Archives - TechRepublic
N
News and Events Feed by Topic

博客园 - BetaGeek™

Geek from SHUFE. 民工之路开篇索引。从游戏到技术 游走在上财主流的边缘 大学四年的总结 Passion & Potential (下部) 博文阅读密码验证 - 博客园 ShufeTaoTao.cn MileStone:RTW, 技术支持及Bug汇报专贴 短篇连载(0),41的大学生涯总结 Passion & Potential , ESports & Technical 索引 短片连载(6),记录这段 电脑爱好者 生涯,从四年级开始接触计算机,直到大二寒假决定步入IT行业。 短篇连载(5),我的民工我的团。感谢民工团,我的好兄弟们。(11P) 短篇连载(4),这些传奇,曾经冠以SHUFE之名 短篇连载(3),在校园里做比赛的那些日子,以及彻底告别钟爱的电子竞技事业 短篇连载(2),和技术无关的经历,关于校园和社会实践。进大学,打比赛,以及组战队 短篇连载(1),41的大学生涯总结 哪里有激情,哪里就有潜力 首章 用window.open在同一个新窗口中访问指定url【IE页面缓存问题】 Microsoft APGC CSS 微软亚太区全球技术支持中心招聘(Expired) 上海财经大学千村调查系统使用说明&Bug&建议管理 【梦想成真】应聘微软大中华区全球技术支持中心实习的经历 力荐iReaper/as a Weekend Systems Admin...为何我从来没用过GHOST? 盖茨和鲍尔默联手接受采访:28年老搭档回忆往昔 微软APGC CSS面试归来,这次貌似没灰头土脸 Never hava I wrote so many english words...just for the company in my dream... 练习选择排序算法碰到鬼 一种用List出错 一种int[]没问题 求助了 大家帮我看看端倪 我菜在哪里还是真碰到灵异事件
ASP.NET AJAX ToolKit 中Accordion的关于OnItemCommand的bug, 通过修改重编译源文件完成修补
BetaGeek™ · 2008-05-15 · via 博客园 - BetaGeek™

3.0.30229.0版本的Ajax toolkit 的dll.
截止昨晚查看是http://asp.net/ajax/上能下载到的最新版本

因为这边的一个简单想法需求,需要在Accordion中自定义好header和content的templete后用自己的datasource进行绑定

其实用法和repeater差不多 主要问题在于OnItemCommand事件的参数

AccordionCommandEventArgs e,理应是这个
不过运行之后系统提示编译错误,对于OnItemCommand无可用overload,而只认CommandEventArgs.

而实际上

AccordionCommandEventArgs 是继承于CommandEventArgs,并且前者多实现一个Container属性,这个属性能获得当前Pane里的对象。

还好这个ajax toolkit是完全开源的,下载了最新版本发现这个bug没有更新过,尝试下自己修改再编译,竟然成功。难道之前没人用动态数据绑过Accordion?

项目中的accordion文件夹中的accordion.cs里
第65行我认为理应是如下表示,可是原本却是

public event CommandEventHandler ItemCommand;        /// <summary>
        /// Event to raise when a command is fired
        /// </summary>
        public event EventHandler<AccordionCommandEventArgs> ItemCommand;

有空大家一起来研究,我这的版本是对应.net framework 3.5的,那个对应2.0版本的toolkit没试过

不过话说回来现在虽然能触发pane中的button事件了,不过还是有些其他问题的,不知道是因为accordion本身就还是半完成品呢才留这么个bug的。。。
搜遍google baidu都没看到类似问题 发上来大家讨论讨论。。。