Page view counter

PopupControlExtender inside an UpdatePanel

Last post 10-31-2006 6:37 PM by jiffy. 5 replies.

Sort Posts:

  • PopupControlExtender inside an UpdatePanel

    10-27-2006, 11:42 AM
    • Loading...
    • jiffy
    • Joined on 07-05-2006, 1:02 PM
    • Irving, TX
    • Posts 38

    I posted the below link in the wrong place, it belongs in this forum...

    http://forums.asp.net/thread/1443129.aspx

  • Re: PopupControlExtender inside an UpdatePanel

    10-30-2006, 12:25 PM
    • Loading...
    • jiffy
    • Joined on 07-05-2006, 1:02 PM
    • Irving, TX
    • Posts 38

    This does seem to be a bug with the popup control.  Here is an abbreviated version of the code:

      

     <asp:UpdatePanel id="FormListEntry" runat="server">
            <ContentTemplate>
                
    
                <asp:LinkButton ID="AddListValue" runat="server" Text="Add List Value" onclientclick="return false;" /                            
           
                "AddPopupControl" runat="server" CssClass="modalPopup">
                   <uc1:listValue id="AddListValueControl" runat="server" />
                   <asp:Button id="AddListValueBtn" runat="server" text="Add List Value" OnClick="AddListValueBtn_Click" />
                </asp:Panel>
                
                <ajaxToolkit:PopupControlExtender runat="server" ID="testPopup" PopupControlID="AddPopupControl" TargetControlID="AddListValue" Position="right"  />
           </ContentTemplate>
        </asp:UpdatePanel>

     And the codebehind:

      

    protected void AddListValueBtn_Click(object sender, EventArgs e)
            {   
                // this event is not getting raised
    
            }
     

    Am I doing something wrong?

     

  • Re: PopupControlExtender inside an UpdatePanel

    10-30-2006, 12:30 PM
    • Loading...
    • jiffy
    • Joined on 07-05-2006, 1:02 PM
    • Irving, TX
    • Posts 38
    So much for copy and paste... let's try this again Confused (replace contenttemplate lines above with the below)
    <asp:LinkButton ID="AddListValue" runat="server" Text="Add List Value" onclientclick="return false;" /> 
                <asp:Panel id="AddPopupControl" runat="server" CssClass="modalPopup">
                   some content here
                   <asp:Button id="AddListValueBtn" runat="server" text="Add List Value" OnClick="AddListValueBtn_Click" />
                </asp:Panel>
     
    <ajaxToolkit:PopupControlExtender runat="server" ID="testPopup" PopupControlID="AddPopupControl" TargetControlID="AddListValue" Position="right"  />
    
     

     

  • Re: PopupControlExtender inside an UpdatePanel

    10-31-2006, 10:27 AM
    • Loading...
    • jiffy
    • Joined on 07-05-2006, 1:02 PM
    • Irving, TX
    • Posts 38
    This is still an issue -- it works properly in the modal popup, but does not work in the PopupControl.  Any ideas?
  • Re: PopupControlExtender inside an UpdatePanel

    10-31-2006, 4:41 PM
    Answer
    • Loading...
    • Matt M
    • Joined on 08-25-2006, 5:25 PM
    • Eastern WA, USA
    • Posts 128

    jiffy:
    This is still an issue -- it works properly in the modal popup, but does not work in the PopupControl.  Any ideas?

     

    I have no idea how I came up with this, but try putting this in your page_load function:

     

     

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Me.AddListValueBtn.UseSubmitBehavior = False
        End Sub

      

    The click handler function is then reachable.  Actually, I think I had a similar problem and this came up, so maybe I do know where it came from.  

     

    Let me know if this helped! 

  • Re: PopupControlExtender inside an UpdatePanel

    10-31-2006, 6:37 PM
    • Loading...
    • jiffy
    • Joined on 07-05-2006, 1:02 PM
    • Irving, TX
    • Posts 38

    Strange, but it did work.  Thanks :)

Page 1 of 1 (6 items)
Microsoft Communities