Hello,
I have a page with a Button which is tied to a ConfirmButtonExtender which is in turn tied to a ModalPopupExtender that has animations. I am unable to get the following code to work properly:
<asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate><asp:Button ID="cmdDelete" runat="server" Text="Delete" CssClass="cmdButton" CausesValidation="False"/><asp:ConfirmButtonExtender ID="cmdDelete_ConfirmButtonExtender" runat="server" TargetControlID="cmdDelete" DisplayModalPopupID="cmdDelete_mpe"></asp:ConfirmButtonExtender><asp:ModalPopupExtender ID="cmdDelete_mpe" runat="server" Drag="true" PopupControlID="panelDeleteFull" OkControlID="ButtonOkDelete" CancelControlID="ButtonCancelDelete" PopupDragHandleControlID="panelDeleteDrag" TargetControlID="cmdDelete" BackgroundCssClass="GrayedOut"><Animations><OnShown><FadeIn Duration="0.4" Fps="75" /></OnShown><OnHiding><FadeOut Duration="0.4" Fps="75" /></OnHiding></Animations></asp:ModalPopupExtender><asp:Panel ID="panelDeleteFull" runat="server"><asp:Panel ID="panelDeleteDrag" runat="server" CssClass="modalDeleteHandle"><div style="float:left">Warning ...</div></asp:Panel><div class="modalDeleteContent"><br /> This action will permanently delete the current record.<br /><br /><div style="text-align:right;" id="panelbuttons"><asp:Button ID="ButtonOkDelete" runat="server" Text="OK" CssClass="panelButton"/> <asp:Button ID="ButtonCancelDelete" runat="server" Text="Cancel" CssClass="panelButton" /></div></div></asp:Panel></ContentTemplate></asp:UpdatePanel>
I get the following error whenever I click the "Ok" button (ButtonOkDelete):
Microsoft JScript runtime error: '_onHiding.get_animation()' is null or not an object (Note: I've tried numerous versions of the toolkit and it doesn't work)
The only way I can get it to work is to remove the UpdatePanel, but I'd really like to be able to keep the UpdatePanel.
Any ideas on how to fix this?
Thank you in advance!