使用Telerik的RadAjaxManager嵌套ASCX控制嵌套、Telerik、RadAjaxManager、ASCX

2023-09-11 01:34:18 作者:奇葩小超银

我想使用Telerik的RadAjaxManager嵌套ASCX控制

I want to use telerik's RadAjaxManager with nested ASCX controls

我有以下设置:

Page
   ascx1
     ascx2

ascx2嵌套在ascx1这是在页。

ascx2 is nested in ascx1 which is in Page.

我在页面一RadAjaxManager。 从在ascx2控制,我调用它调用

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)

在ascx1,而不是一个在ascx2 -

in ascx1 and not the one in ascx2 --

我缺少的东西?

推荐答案

在你的孩子控制,你应该使用:

On you child controls you should use the:

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">