开发者

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
    }
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜