Monday, January 23, 2012

JQuery and update panel.

JQuery and update panel.

We faced problem when we have update panel and using .ready function of jquery.
than on asysnc request of update panel Jquery .ready is not fired than we have to use add_load of sys.Application class of scrip manager library.

JQuery:
$(document).ready(function IwillCallWhenPgeIsReady(
//IF you have update panel than it will never call on async request
){});
Update Panel:
Sys.Application.add_load(function() {});

No comments: