我有一个ASP.Net RadioButtonList控件,其AutoPostBack设置为true,服务器端处理程序为SelectedIndexChanged事件。RadioButtonList不会触发ajax回发
<asp:RadioButtonList runat="server" ID="btnAcceptReject" RepeatDirection="Horizontal" CssClass="checkboxlist borderless" ValidationGroup="data" AutoPostBack="true" OnSelectedIndexChanged="radioButtonList_SelectedIndexChanged">
<asp:ListItem Text="The edition is hereby validated for conformity to standards" Value="0" Selected="True"></asp:ListItem>
<asp:ListItem Text="The edition does not meet standards and still has to be reviewed" Value="1"></asp:ListItem>
</asp:RadioButtonList>
我使用的是RadAjaxManager,一个Telerik的控制,处理Ajax回发
<telerik:RadAjaxManagerProxy runat="server" ID="RadAjaxManagerPRoxy1">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="btnAcceptReject">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="pnlControls" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
pnlControl是含有控制页面上的面板,这将取决于哪个被使能/禁止单选按钮被选中。
以上总是执行页面的完整回发。
我该如何让它执行ajax部分回发?
RadAjaxManager确实在母版页上声明,否则我会得到一个异常。我从来没有使用RadAjaxPanel,但我会试试 – kfc
我尝试使用RadAjaxPanel,同样的故事。它继续执行完整的回发。如果这是相关的,这两个控件,btnAcceptReject和pnlControls都在用户控件中。 – kfc
已对我的原始文章进行了编辑 - 请查看 – Mak