Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 299
  • Last Modified:

Popup Control Extender

Having some issues with a popup control extender, can't get the button to fire to close window

<asp:updatepanel id="UpdatePanel1" runat="server">
   <ContentTemplate>
      <asp:TextBox runat="server" ID="tbSupportStaff"></asp:TextBox>
     
      <cc1:PopupControlExtender runat="server" ID="popSupportStaff"
        TargetControlID="tbSupportStaff"
        PopupControlID="pnlSupportStaff"
        Position="Bottom">
      </cc1:PopupControlExtender>
                                   
      <asp:Panel runat="server" ID="pnlSupportStaff">
         <asp:ListBox runat="server" ID="lstSupportStaff" AppendDataBoundItems="true" DataTextField="Name" DataValueField="ID" Width="250px" SelectionMode="Multiple">
         </asp:ListBox>
                                   
         <asp:Button runat="server" ID="btnSupportStaff" CausesValidation="false" OnClick="btnSupportStaff_ButtonClicked" Text="OK" />
      </asp:Panel>
      </ContentTemplate>
</asp:updatepanel>

The button click never fires. I know I have something simple wrong, just haven't figured it out yet
0
WaldaInc
Asked:
WaldaInc
1 Solution
 
SAMIR BHOGAYTAFreelancer and IT ConsultantCommented:
0
 
Kumaraswamy RCommented:
we can close the popup window

step 1:

Javascript Method:
function ClosePopup()
{
  $find("ClosePopup").hidePopup();
}

step 2:
Extender definition:
<ajaxToolkit:PopupControlExtender ID="PopupControlExtender1" runat="server"
   TargetControlID="DateTextBox" BehaviorID="ClosePopup"
   PopupControlID="PntMailList" Position="Bottom" />

step 3:

Call the method:
<a href="javascript:ClosePopup();">Close Popup Window</a>
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now