Modal Popup based on RadioButtonList

Last post 03-25-2009 5:29 PM by twogiraffe. 1 replies.

Sort Posts:

  • Modal Popup based on RadioButtonList

    07-25-2006, 9:55 AM
    • Member
      90 point Member
    • alexdriver
    • Member since 06-14-2006, 11:49 AM
    • Posts 20
    Hi,
    I want to display a Modal Popup only if the user selects Yes from the RadioButtonList, otherwise I don't want it to be displayed.
    Here is what I have so far:


     
    "rblComplaint" runat="server" OnSelectedIndexChanged="rblComplaint_SelectedIndexChanged"
                    RepeatDirection="Horizontal">
                                    Yes
                                    No
                                
                                "LinkButton1" runat="server">LinkButton
                                "mpeComplaint" runat="server">
                                    "btnCancel" OkControlID="btnOK" PopupControlID="Panel1" TargetControlID="LinkButton1" BackgroundCssClass="modalBackground" />
                                
                                
                                "Panel1" runat="server" CssClass="modalPopup">
                                    Details:"txtDetails" runat="server">
                                     
    "btnOK" runat="server" Text="OK" /> "btnCancel" runat="server" Text="Cancel" />
     
  • Re: Modal Popup based on RadioButtonList

    03-25-2009, 5:29 PM
    • Member
      2 point Member
    • twogiraffe
    • Member since 03-25-2009, 5:24 PM
    • Posts 1

    use the HtmlControl version of the radio buttons instead of a RadioButtonList

    <input type="radio" value=""Yes" id="rbYes" runat="server" name="YesNo" />

    <input type="radio" value=""No" id="rbNo" runat="server" name="YesNo" />

    On the popup extender, set the TargetControlID to whatever the radio button you want to open the popup.

     

     

Page 1 of 1 (2 items)