Update Panel Problems Fixed


to make update panel listen to your postback changes do as follow
in script:

$(document).ready(IntializeStd);
//On UpdatePanel Refresh
var prm = Sys.WebForms.PageRequestManager.getInstance();
if (prm != null) {
prm.add_endRequest(function (sender, e) {
if (sender._postBackSettings.panelsToUpdate != null) {
IntializeStd();
}
else {
IntializeStd();
}
});
};

function IntializeStd() {
//whatever you want to do after update panel postback
//code goes here
});
}
}
}

Did you find this article useful?