Solved

Popup Control Extender

Posted on 2011-02-14
4
243 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
4 Comments
 
LVL 11

Expert Comment

by:SAMIR BHOGAYTA
Comment Utility
0
 
LVL 29

Accepted Solution

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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 …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now