0

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?

ailerifren
  • 87
  • 1
  • 8
  • 1
    Seems like a duplicate of http://stackoverflow.com/questions/6188050/javascript-event-subscription-after-updatepanel-async-postback – 404y May 14 '14 at 20:59
  • @user3638443 ``Sys.WebForms.PageRequestManager.getInstance()`` works! – ailerifren May 14 '14 at 21:19

0 Answers0