Questions tagged [pagerequestmanager]
28 questions
6
votes
3 answers
Why does my function run multiple times after UpdatePanel is loaded
So I want to run some javaScript function after my updatepanel is updated, so I have:
function pageLoad() {
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_pageLoaded(panelLoaded);
}
function panelLoaded(sender, args) {
…

eastboundr
- 1,857
- 8
- 28
- 46
4
votes
2 answers
ScriptManager1.AsyncPostBackErrorMessage not showing error message
I've always used the following two bits of code (which use to work) to catch Ajax asyncPostBackErrors.
and
protected void…
user202357
4
votes
2 answers
How to execute javascript once an update panel refreshes (Can't get Sys.WebForms.PageRequestManager.getInstance().add_endRequest(); to work)
I'm trying to run javascript once an update panel has refreshed. I've read a few places that you can use code similar to this:
function codeToRun() {
//Code Here
}
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(codeToRun);
But it…

Matt
- 5,547
- 23
- 82
- 121
3
votes
3 answers
Check what control initiated AJAX Request
asp.net 2.0 / jQuery / AJAX