So, I want to run some javaScript function after updating my updated panel, so I have:
function pageLoad() {
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_pageLoaded(panelLoaded);
}
function panelLoaded(sender, args) {
alert("foobar");
}
With the above code, if I update the panel once, "foobar" will be warned once; If I update the panel a second time, "foobar" will appear twice; the third time I run the panel to update, "foobar" popped up three times ... 4th time pop 4 times so on and so on ....
What caused this?
Thanks ~~~
source
share