G
Greg
Hello,
I have a form where, on a button's click event, I add some link buttons to
the page. I have an event handler for these link buttons' click event, which
I wire up to the buttons using AddHandler.
The problem is, I can't get the event handler to fire. When I click on one
of the link buttons, the link buttons vanish from the page, and the click
event handler is never fired.
I'm not sure if I'm putting AddHandler in the wrong place (I've tried the
routine where I generate the link buttons, as well as every event on Page and
the link buttons' parent control - a PlaceHolder - that seemed even remotely
likely) or if there's something else entirely that I'm missing. Any help
with getting Click to fire for these link buttons would be greatly
appreciated.
Thanks you!
Greg
I have a form where, on a button's click event, I add some link buttons to
the page. I have an event handler for these link buttons' click event, which
I wire up to the buttons using AddHandler.
The problem is, I can't get the event handler to fire. When I click on one
of the link buttons, the link buttons vanish from the page, and the click
event handler is never fired.
I'm not sure if I'm putting AddHandler in the wrong place (I've tried the
routine where I generate the link buttons, as well as every event on Page and
the link buttons' parent control - a PlaceHolder - that seemed even remotely
likely) or if there's something else entirely that I'm missing. Any help
with getting Click to fire for these link buttons would be greatly
appreciated.
Thanks you!
Greg