这是场景,
我有一个更新面板,其中有单选按钮。
检查单选按钮时,我想启用更新面板之外的面板。
我尝试了以下两件事:
- 将面板放在另一个更新面板中不起作用。
 - 单击单选按钮时使用 JavaScript 无效。
 
将面板放在另一个更新面板中并将更新模式设置为条件。
你还需要做一件事
在检查单选按钮事件时,您需要调用新添加的更新面板的更新方法
UpdatePanel1.Update();
    我希望这个代码示例对您有所帮助。
         <asp:UpdatePanel ID="udp1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
         <asp:RadioButton ID="rb1" runat="server" AutoPostBack="true" OnCheckedChanged="Control_CheckedChanged"
                        Text="Text" GroupName="Group1" />
         <asp:RadioButton ID="rb2" runat="server" AutoPostBack="true" OnCheckedChanged="Control_CheckedChanged"
                        Text="Text2" GroupName="Group1" />
        </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdatePanel ID="udp2" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
         <asp:Panel ID="pnl1" runat="server" Visible="false">
            <asp:Label ID="lblText" runat="server" Text="Text"/>
         </asp:Panel>
        </ContentTemplate>
            <asp:AsyncPostBackTrigger ControlID="rb1" />
            <asp:AsyncPostBackTrigger ControlID="rb2" />
        </asp:UpdatePanel>
         protected void Control_CheckedChanged(object source, EventArgs e)
         {
            pnl1.Visible=rb1.Checked;
         }