Jquery+Updatepanel+UserControl document.ready doesnot get fired
I have put some Jquery code in a user control and it is placed in a page with updatepanel.
On a button click on a page User Control Grid is displayed.
document.ready event doesn't get fired in user control after partial post back.
How do I handle it?
开发者_StackOverflow中文版I am following this link but didn't get solution to my problem.
Call jquery code after partial postback:
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
function EndRequestHandler(sender, args) {
if (args.get_error() == undefined) {
// add your functions here
}
}
精彩评论