About the author

Miron Abramson
Software Engineer,
CTO at PixeliT
and .NET addicted for long time.
Open source projects:
MbCompression - Compression library

Recent comments



The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2015

Creative Commons License

Blog Flux Directory
Technology Blogs - Blog Top Sites

Events from control inside Accordion control are not being fired in first click

Update: In the last release of AjaxControlToolkit, the problem had been solved

I never used the Accordion control before. Last days, I had to work on another developer's code that used an Accordion control.  One of the problems the code had was that when you click on a button that inside the Accordion control - the first click doesn't do nothing, only the second click fire the event. The control was inside an updatepanel, so I was sure that make the problem, but it still happened after I took it out from the updatepanel.

I searched the Internet, and I found that is very common problem with that control. I tried lot of solutions suggested, like adding a reference  to the button in the OnInit page event, adding manually  the event, and some stuff similar, but nothing really worked. After I almost got crazy, I found this post and it had some source code that claimed to be the solution. I downloaded the whole source of the AjaxControlToolkit.dll, change the code in the Accordion class with the attached code in the post, compiled it, replaced the AjaxControlToolkit.dll in my project with the new compiled one - and Walla!!! the Accordion starts to work as expected, and to fire all the needed events!

So, if you have that problem, that events are not being fired from withing your Accordion control, and you are lazy to download and compile the source code of the AjaxControlToolkit, just download the file below, replace the AjaxControlToolkit.dll in your project with this one, and your Accordion will work just fine.

AjaxControlToolkit.zip (402.69 kb)

Currently rated 4.7 by 3 people

  • Currently 4.666667/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by Miron on Sunday, December 21, 2008 7:38 AM
Permalink | Comments (6) | Post RSSRSS comment feed

Related posts



Sunday, December 21, 2008 8:13 AM


Trackback from DotNetKicks.com

Events from Accordion control are not being fired problem

Benny il

Friday, February 27, 2009 10:24 AM


Well done Smile I was also going crazy trying to figure this out, but gave up..

magos ar

Saturday, April 04, 2009 5:46 AM


Hi and thanks for the post.

I have a question regarding accordion controls though:

I have an accordion inside a <table> tag and have FadeTransitions set to true.
Something goes wrong because the spacing between accordion panes goes awry.
I'm using IE6.
Any clues?

Thanks so much!

Miron il

Saturday, April 04, 2009 5:54 AM


No tengo ningun idea.
I just fixed existing code.
I didn't played with it too much.

Venki in

Tuesday, December 22, 2009 3:36 PM


Miron, I have the click problem with accordion. I see your article and download the dll. I replace the dll from my application with your's. But still I have a same problem. Yet Problem was not solve. Any idea Please tell me ?


Friday, August 06, 2010 11:41 PM


Pingback from topsy.com

Twitter Trackbacks for

Events from control inside Accordion control are not being fired in first click
on Topsy.com