问题
I want to use telerik's RadAjaxManager with nested ASCX controls
I have the following setup:
Page
ascx1
ascx2
ascx2 is nested in ascx1 which is in Page.
I have a RadAjaxManager on 'Page'. From a control in ascx2, I invoke a javascript method which calls
ajax.ajaxRequest(arguments);
The problem is that it runs
protected void AjaxManager_AjaxRequest(object sender, AjaxRequestEventArgs e)
in ascx1 and not the one in ascx2 --
Am I missing something?
回答1:
On you child controls you should use the:
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
来源:https://stackoverflow.com/questions/6757911/using-teleriks-radajaxmanager-with-nested-ascx-controls