Dynamic button i dynamic table click event
Any ideas from someone?
In my project i build a asp:table dynamically based on a database query.
In this I add a button dynamically, so for the selected cell i add the button - cell.controls.add(X). Now, the problem is getting the clickevent to call for the method.
If I do the same thing, without the table.. create a button dynamically and have it call a method on the click event, it works fine, so I dont think there is any problem with that code
It has to be something with the table, can you create an dynamic table and assigne a dynamically created button to this? And how do you make it call methods on click?
(At the moment I do not have the code.. sitting at work)
Thanks