用于无线电按钮的模型弹出扩展器 [英] modelpopupextender for radiobuttton

查看:66
本文介绍了用于无线电按钮的模型弹出扩展器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我正在将modelpopupextender targetcontrolid分配为单选按钮id,但未解决问题.

in my application i am assigning modelpopupextender targetcontrolid as a radiobutton id but am not getting what is the problem.

推荐答案

您好,

请详细说明您的代码问题,

在正常情况下,如果将"TargetControlID"设置为单选按钮.模态打开,但是当它消失时,单选按钮仍然保持未选中状态.解决此问题的解决方案以再次重新检查它.

("RadioButton1").attr("checked",true);

谢谢!!!!!!!
Hello,

please explain more about your code issue,

In normal scenario if you have the "TargetControlID" set to the radio button. The modal opens up but when it goes away radio button will still remain unchecked. The solution to resolve this issue to again recheck it.

("RadioButton1").attr(''checked'',true);

Thanks!!!!!!!


- Write tags for Radio Button ajax Modal Popup exnder & PopupControlID following ways
- Add others tags & controls as per your Requirements
- Write Javascript function onOk() & onCancle() in <script> tag

<asp:RadioButton ID="RadioButton1" runat="server" />

<ajax:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="RadioButton1" PopupControlID="panel1"

      CancelControlID="btnCancel" OkControlID="btnOK" OnOkScript="onOk()" OnCancelScript="onCancle()"

      PopupDragHandleControlID="panel1">
</ajax:ModalPopupExtender>

<asp:Panel ID="panel1" runat="server">
                                  <table style="width: 100%; border-width: 1px; border-color: #666666;">
                                    <tr>
                                        <td class="formtext" style="height: 23px; width: 150px;" align="left">
                                            Give Your Name
                                        </td>
                                        </tr>
                                        <tr>
                                        <td>
                                        <asp:TextBox ID="MyTextBox" runat="server" Height="140px" Width="95%" TextMode="MultiLine"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                        <asp:Button ID="btnOK" runat="server" Text="OK" />
                                        <asp:Button ID="btnCancel" runat="server" Text="Cancel" />
                                        </td>
                                    </tr>
                                </table>
</asp:Panel>


这篇关于用于无线电按钮的模型弹出扩展器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆