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

[Solved] Getting a reference to a Proxy from a child of a master page

1 Answer 130 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
thepilsbury
Top achievements
Rank 1
thepilsbury asked on 07 Feb 2008, 12:39 AM
I have a child of a master page. The master page has a RadAjaxManager. The child page has a RadAjaxManagerProxy.

I have a client side javascript function within a RadCodeBlock:

function AjaxRequestButton(arguments)

{

var ajaxManager = $find(<%= RadAjaxManagerProxy1.ClientID %>);

ajaxManager.AjaxRequestWithTarget(

'<%= Button1.UniqueID %>', '');

}

However calling this function generates a runtime error:
'ctl00_toolbarContent_RadAjaxManagerProxy1' is undefined

I've tried moving the proxy to other contect areas of the child page but to no avail. It seems that the javascript function can't  locate the proxy.

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Leon
Top achievements
Rank 1
answered on 07 Feb 2008, 09:30 AM
Hello,

I believe you need the manager instead of the proxy to call the AjaxRequest(WithTarget). Use RadAjaxManager.GetCurrent() to get that. The thread below should help.

http://www.telerik.com/community/forums/thread/b311D-ththc.aspx

-Leon
Tags
Ajax
Asked by
thepilsbury
Top achievements
Rank 1
Answers by
Leon
Top achievements
Rank 1
Share this question
or