Solved

Popup Control Extender

Posted on 2011-02-14
4
275 Views
Last Modified: 2014-06-01
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
Comment
Question by:WaldaInc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 11

Expert Comment

by:SAMIR BHOGAYTA
ID: 34894762
0
 
LVL 29

Accepted Solution

by:
Kumaraswamy R earned 500 total points
ID: 35815563
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Force Download of Zip file via JQuery 2 148
How to refactor edit/delete jQuery to include else statements 5 73
Javascript Hashmap output 8 79
Json and ajax 1 19
jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

761 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question