Click here to Skip to main content
15,889,861 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i had a Ajax popup panel in asp.net

in popup if any postback event occurs it returns to the corresponding home page.

it should not return if any post back occurs it should be still in that popup page what to do??

C#
      .bkground
      {
        background-color: White;
         filter: alpha(opacity=80);
         opacity: 0.8;
          -moz-opacity: 0.8;
       z-index:10000;
       }

<asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="btnShowPopup" PopupControlID="pnlPopup" BackgroundCssClass="bkground">
   </asp:ModalPopupExtender>
Posted
Updated 7-Jul-13 21:38pm
v2

1 solution

Put your ModalPopupExtender inside update panel.

XML
<asp:UpdatePanel id="updatePanel2" runat="server" UpdateMode="Conditional">
         <ContentTemplate>
<asp:Panel id="pnlPopup" runat="server">

</Panel>
        </ContentTemplate>

    </asp:UpdatePanel>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900