Author: Chirola | Posted on: 11/17/2010 7:09:11 AM | Views : 892

Hello,
It is my first post here, and i don't know if i've created this post on the wrong topic. If i did, i'm sorry for that.
 
I'm developping an aplication in C# asp.net, that requires the adding of buttons dynamically to the web page.
Each of these buttons have an event associated, wich is triggered with the "onclick" event.
 
The problem is, the buttons that are initially in the page(created on page load), it only takes one click to trigger the event.
But the buttons that are dynamically added to the page, it takes to click's to trigger the event.
I've put here a part of my code that is located on the code-behind file, to be easier for you to help me.
 
 I can list the folders, open the files,the only problem here , is in the part the buttons that are dynamically added to the page, it takes two clicks to trigger the event ...

Go to the complete details ...