Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am creating dynamic link button control with Click event handler on Button click but it not firing the event.

Can anyone help.
Posted

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:
VB
dim b as Button
b.Attributes.Add("OnClick", "show()")
mode.Controls.Add(b)  'mode is id of table cell

All the best
 
Share this answer
 
v2
 
Share this answer
 
v7

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900