How can I rebind my events (jquery) when I perform a partial page postback?
I am wiring everything up using:
$(document).ready(function(){};
After a partial page postback, my events are not firing.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can either tap into the PageRequestManager endRequestEvent:
Or if it is control events you’re trying to attach, you can use jQuery live events.
Another option is to do the event delegation manually. It is what the “live” event are doing under the covers. Attach the event handler to the document itself, then conditionally execute your method if the sender of the event was element you expect.