Questions tagged [pagerequestmanager]
28 questions
5
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) {
…
![](../../users/profiles/612569.webp)
eastboundr
- 1,727
- 8
- 25
- 43
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…
![](../../users/profiles/133535.webp)
Matt
- 5,207
- 23
- 73
- 111
3
votes
3 answers
Check what control initiated AJAX Request
asp.net 2.0 / jQuery / AJAX