Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RaisePostBackEvent not firing

I have a custom control that implements IPostBackEventHandler. Some client-side events invoke __doPostBack(controlID, eventArgs).

The control is implemented in two different user controls. In one control, RaisePostBackEvent is fired on the server-side when __doPostBack is invoked. In the other control, RaisePostBackEvent is never invoked. I checked the __EVENTTARGET parameter and it does match the ClientID of the control... where else might I look to troubleshoot this?

like image 211
Rex M Avatar asked Nov 15 '22 17:11

Rex M


1 Answers

There's a lot of ways this can fall apart. Are you adding the control to the page dynamically in code behind? If so alot of times your UniqueID can be off - even though the client id's are equal. Do you have a code sample that might demonstrate what you're doing?

like image 58
brendan Avatar answered Dec 09 '22 00:12

brendan