javascript load callback for UpdatePanel
By Anatoly Mironov
Using asp:UpdatePanel isn’t so easy with jQuery(document).ready() or jQuery(window).load(). The jQuery selectors can’t find elements which are not shown in the beginning. All other elements which are loaded dynamically are difficult to catch. I found a solution in forums.asp.net. A user called germanz creates an jQuery event listener AjaxReady, he uses the ASP.NET built-in PageRequestManager. If there only few usages of it it can be invoked directly from a PageRequestManager instance:
$(document).ready(function () {
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add\_endRequest(initTxtNextContact);
});