Solved

Popup Control Extender

Posted on 2011-02-14
4
280 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Today I am discussing AJAX problems in IE7 and I bet this will helps many guys out here who have problems with AJAX work. Lets start with the discovery of problem and then we will talk about its different solutions. My last two projects included …
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

740 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