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

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

Can anyone help.

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.

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
Share this answer

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