Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Error: An extender can't be in a different UpdatePanel than the control it extends.

$
0
0

 Hello folks, trying to figure this ModalPopupExtender out but I am stuck. I am trying to have two modal dialogs appear depending on what you choose. The first is adding a new vulnerability to the listing, the other would be to add a new application name. What I'm running into is an error that says:

An extender can't be in a different UpdatePanel than the control it extends.

I'm pretty confused by this because they are both targeting different asp:panel controls. Let me know if anyone finds something in the code and how I can fix the problem. I have truncated both DetailViews to make the code a little easier to examine since the problem is with the Panels and ModalPopupExtender (extra code represented by ...) Thanks!!!

<asp:ScriptManager ID="tlkt1" runat="server"></asp:ScriptManager><div><h1 class="auto-style8">Send New Request</h1><asp:LinkButton ID="btnAddVuln" runat="server">Add Vulnerability</asp:LinkButton><ajax:ModalPopupExtender ID="mdlpopup" BackgroundCssClass="modalbackground"
            runat="server" TargetControlID="btnAddVuln" PopupControlID="pnlModalAddVuln"
            OkControlID="LnkBClose" Y="100"></ajax:ModalPopupExtender><asp:Panel ID="pnlModalAddVuln" runat="server" BorderColor="ActiveBorder" CssClass="modalpopup" BorderStyle="Solid" 
BorderWidth="1px"
Width="650px" BackColor="White"> ...
</asp:Panel></div><div><ajax:ModalPopupExtender ID="mdlAddAppName" BackgroundCssClass="modalbackground" runat="server" TargetControlID="ddlAppName" PopupControlID="pnlModalAddApp" OkControlID="lnkCloseAddApp" Y="100"></ajax:ModalPopupExtender><asp:Panel ID="pnlModalAddApp" runat="server" BorderColor="ActiveBorder" CssClass="modalpopup" BorderStyle="Solid"
BorderWidth="1px" Width="650px" BackColor="White"> ...
</asp:Panel></div>


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>