hi......
i have did it successfully.
I am generating button controls dynamically & display it in table cell having td id as "mode".I have attach onClick event on which show method call.try this following code.i will hope it helps you.if still you have not resolved issue send me your code.
Code:
dim b as Button
b.Attributes.Add("OnClick", "show()")
mode.Controls.Add(b)
All the best