Button on PopupControl causing click on the button on parent page

Last post 12-23-2008 3:17 PM by ruchitgarg. 2 replies.

Sort Posts:

  • Button on PopupControl causing click on the button on parent page

    12-20-2008, 10:10 PM
    • Member
      3 point Member
    • ruchitgarg
    • Member since 02-21-2008, 1:14 PM
    • Posts 18

    I have implemented a Popupcontrol which has a text box and a button( say a) on it. It works good when I am in a page which does not have any buttons on it. But whenever there is a button (say b) on the parent page, i am facing multiple issues:

     1- My parent page does not get updated as expected.

    2- Pop-up control does not disappear.

    3- Button b click event gets fired...( which i think is the main problem why about #1 & 2) is not happening.

    What is that I am doing wrong here?

     I see similar issue when I use modalPopUp

  • Re: Button on PopupControl causing click on the button on parent page

    12-23-2008, 4:41 AM
    • Participant
      1,692 point Participant
    • Wyerarch
    • Member since 05-22-2008, 9:39 AM
    • Lincolnshire, England
    • Posts 397

    Can you post the code so whe can see what type of buttons you are using?

    If this answered your question, please mark as an answer so others will know too.

    http://wyerarch.blogspot.com
  • Re: Button on PopupControl causing click on the button on parent page

    12-23-2008, 3:17 PM
    • Member
      3 point Member
    • ruchitgarg
    • Member since 02-21-2008, 1:14 PM
    • Posts 18

    Target Label  

    <asp:Label ID="ChangeLocationLabel" runat="server" Text="Change Location" Font-Size="X-Small"></asp:Label>

    <cc1:PopupControlExtender ID="ChangeLocationLabel_PopupControlExtender" runat="server"

    DynamicServicePath="" Enabled="True" PopupControlID="Panel2" Position="Bottom"

    TargetControlID="ChangeLocationLabel" CommitProperty="Text" CommitScript="e.Text;">

    </cc1:PopupControlExtender>

    Panel Code which is part of Master file

    <asp:Panel ID="Panel2" runat="server" Width="215px" CssClass="popupControl">

    <asp:UpdatePanel ID="UpdatePanel2" runat="server">

    <ContentTemplate>

    <table width="100%" align="center">

    <tr align="center" valign="middle">

    <td>

    <asp:TextBox ID="TextBox1" runat="server" CssClass="iTextBox"></asp:TextBox>

    </td>

    <td>

    <cc1:AutoCompleteExtender ID="TextBox1_AutoCompleteExtender" runat="server" DelimiterCharacters=""

    Enabled="True" ServiceMethod="SuggestLocation" ServicePath="GetUserLocation.asmx"

    TargetControlID="TextBox1" MinimumPrefixLength="1">

    </cc1:AutoCompleteExtender>

    <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="Set" Width="34px" />

    </td>

    </tr>

    </table>

    </ContentTemplate>

     </asp:UpdatePanel>

     

    </asp:Panel>

     On button click I am setting some cookies.

Page 1 of 1 (3 items)