I have a custom user control CustomControl.ascx
with some javascript features declared in $.fn.CustomControl
. When I use the control, I also init the javascript object by calling $('#element').CustomControl();
Now I have this control in an UpdatePanel, and it is my async postback trigger control. After I got my postback, the initialized javascript object is gone, and thus all my javascript event bindings are gone.
Is there a way to fix it?