ModalPopupExtender closing as soon as it opens
Posted
by Fred
on Stack Overflow
See other posts from Stack Overflow
or by Fred
Published on 2009-07-28T19:11:46Z
Indexed on
2010/03/27
11:33 UTC
Read the original article
Hit count: 366
Hi,
I'm trying to use the AjaxToolkit's ModalPopupExtender, but it doesn't work. In fact, as soon as it opens, it's getting closed. So I can see that it is rendered, but it's getting closed in the second.
I tried that with IE6 and Firefox 3, it does the samething.
Here's the code:
<AjaxControlToolkit:ModalPopupExtender ID="ModalPopupExtender1" TargetControlID="ButtonTarget" PopupControlID="Panel1" OkControlID="ButtonOk" CancelControlID="ButtonCancel" BackgroundCssClass="modal-background" runat="server">
</AjaxControlToolkit:ModalPopupExtender>
<asp:Panel ID="Panel1" Style="display: none;" runat="server">
<%-- some stuff... --%>
</asp:Panel>
© Stack Overflow or respective owner