Knowledge base

IT is a great and exciting world to be in.
All who have passion for it will understand why we have created these pages.
Here we share our technical knowledge with you.
ProgrammingAICloudManagementMobileDB & AnalysisSafetyOtherArchitectureTips

Ajax ModalPopupExtender postback issue

Libor Bešenyi (Solution architect)

Do you experiencing closing ajax popup after async postback? Dialog was in UpdatePanel, but any postback closed the popup:

<asp:HiddenField runat="server" ID="hiddenFieldFake" />

<ajax:ModalPopupExtender ID="modalPopupExtender" runat="server" BackgroundCssClass="ModalBackground"
        DynamicServicePath="" Enabled="True" PopupControlID="panelDialog"
        TargetControlID="hiddenFieldFake" />

<asp:Panel ID="panelDialog" runat="server" CssClass="ModalPopup" Height="700px" Style="display: none;" Width="650px">
        <asp:UpdatePanel runat="server" ID="UpdatePanel">
                <ContentTemplate>
                        <asp:Button runat="server" />

                </ContentTemplate>
        </asp:UpdatePanel>

This was caused with one parameter in master page which holds script manager and was optimized:

<ajax:ToolkitScriptManager ID="ScriptManager" runat="server" EnablePartialRendering="false" />

Removing “optimization” attribute (EnablePartialRendering="false") resolved our issue.

 

Find out more

Knowledge baseProgrammingAITips

Quick start

1
Contact
Contact us for a free consultation on your business needs!
2
Analysis
After the discussion we will perform mapping of the processes and analyse the current state.
3
Proposal
You will receive variety of scenarios to choose from discribing different ways how to solve your issue.
Contact us