G
Guest
Hi,
I have a dynamically created ImageButton in a custom control, and I can't
get the control to handle the ImageButton Click event. I see the control in
the Page.Request.Form.AllKeys collection, but it's represented as "imgbtn.X"
(and .Y), and I'm guessing that .NET can't connect the name to the event
since the ID isn't an exact match. I read an article stating that I need to
use IPostBackDataHandler methods, but I didn't have a lot of luck. Can
someone tell me what I'm missing here?
Also, I'd be willing to override whatever event/method is appropriate and
wire-up the event handler myself, but I wasn't sure what to override. If
someone could point me in the right direction, I'd appreciate it.
TIA,
Steve
I have a dynamically created ImageButton in a custom control, and I can't
get the control to handle the ImageButton Click event. I see the control in
the Page.Request.Form.AllKeys collection, but it's represented as "imgbtn.X"
(and .Y), and I'm guessing that .NET can't connect the name to the event
since the ID isn't an exact match. I read an article stating that I need to
use IPostBackDataHandler methods, but I didn't have a lot of luck. Can
someone tell me what I'm missing here?
Also, I'd be willing to override whatever event/method is appropriate and
wire-up the event handler myself, but I wasn't sure what to override. If
someone could point me in the right direction, I'd appreciate it.
TIA,
Steve