This is a migrated thread and some comments may be shown as answers.

can't consistently get a reference to ajaxmanager

1 Answer 32 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 07 Jan 2009, 01:51 AM

 

 

I'm seeing some odd behaviour on a master page. The ajaxmanager and the control being updated are on the master page itself - not inside contentplaceholders. 

var
ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
alert(ajaxManager); // This prints "object" on first call but "null" on all subsequent calls.
ajaxManager.ajaxRequest(
"nodeclick");

Seems I can't get a reference to ajaxmanager conistsnetly - does this make sense at all?

Cheers,
Andles.

 

1 Answer, 1 is accepted

Sort by
0
Andy
Top achievements
Rank 1
answered on 07 Jan 2009, 02:34 AM
To answer my own question - I had the script manager occuring after the ajaxmanager. Switching them round fixed the problem.
Tags
Ajax
Asked by
Andy
Top achievements
Rank 1
Answers by
Andy
Top achievements
Rank 1
Share this question
or