locked
Hidden button still required for Modal popup extender? RRS feed

  • Question

  • User-1833980242 posted

    I have used the AJAX Control Toolkit in a few years.  Is a button like the one below still required for the Moday Popup extender to work?

     <ajax:ModalPopupExtender ID="ModalPopupExtender" runat="server" TargetControlID="btnHidden" BehaviorID="MPBehavior1" 
    PopupControlID="pnlModalPopUp" > </ajax:ModalPopupExtender> <asp:Button ID="btnHidden" runat="server" Text="Button" style="display: none;" />

    Thursday, April 10, 2014 9:35 AM

Answers

  • User1208776063 posted

     Is a button like the one below still required for the Moday Popup extender to work?

    Using hidden button as a target for modal popup extender was never a requirement. As TargetControlID is a required property, programmers often use a hidden button as target so that modal popup can be shown from code behind manually using PopupId.Show();

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, April 10, 2014 9:45 AM