Click here to Skip to main content
15,920,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in my application i am assigning modelpopupextender targetcontrolid as a radiobutton id but am not getting what is the problem.
Posted
Comments
AmitGajjar 1-Sep-12 7:57am    
check http://www.dotnetfunda.com/forums/thread3193-radiobutton-list-id-for-target-control-id-in-modal-popup.aspx
bbirajdar 1-Sep-12 14:14pm    
You have the code and still you are 'not getting the problem' , then how can we, without seeing the code, 'get your problem?'

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!!!!!!!
 
Share this answer
 
XML
- 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>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900