On my webpage, i have an UpdatePanel that contains an asp:panel Panel and some controls with an Ajax CalendarExtender. The Panel initially has visibility set to false. When i select a value from a dropdown, a GridView loads and if the number of rows in the gridview are greater than 0, i set the panel visibility property to true and call the Update method on the UpdatePanel. When i do this, i receive the following js error:
0x800a139e - JavaScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Extender control 'tbIDMdate_CalendarExtender' is not a registered extender control. Extender controls must be registered using RegisterExtenderControl() before calling
RegisterScriptDescriptors().
Parameter name: extenderControl
I have done a bunch of research and so far nothing has worked. I'm not sure what to do to get it to work, the error appears when i try to set the visibility property of the Panel to True.
<asp:UpdatePanel ID="updPnlAssignDeliveryMethods" UpdateMode="Conditional" runat="server"><ContentTemplate><asp:Panel ID="pnlAssignDeliveryMethods" runat="server" Visible="false"><asp:Label ID="Label18" runat="server" Text="IDM Date:"></asp:Label><asp:TextBox ID="tbIDMdate" runat="server" Width="75px"></asp:TextBox><ajaxToolkit:CalendarExtender ID="tbIDMdate_CalendarExtender" runat="server" Enabled="True" TargetControlID="tbIDMdate"></ajaxToolkit:CalendarExtender><asp:Label ID="Label19" runat="server" Text="Delivery Method:"></asp:Label><asp:Button ID="btnAssignSD" runat="server" CssClass="buttonBlue" OnClick="btnAssignSD_Click" Text="Seat Delivery" /> <asp:Button ID="btnAssignSelfDeploy" runat="server" CssClass="buttonBlue" OnClick="btnAssignSelfDeploy_Click" Text="Self Deploy" /> <asp:Button ID="btnAssignFS" runat="server" CssClass="buttonBlue" OnClick="btnAssignFS_Click" Text="Field Services" /></asp:Panel></ContentTemplate></asp:UpdatePanel>
Ernest