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.