I have added the controls in my aspx page in Ajax manager and I am getting an error "Microsoft JScript runtime error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'PanelMsgPanel'. If it is being updated dynamically then it must be inside another UpdatePanel." This error is coming for all the controls in the Ajax manager control ID="rbSave".I have many labels in my aspx page with visible=false.Tried including them in a panel ,but result is the same.
I have searched the forum and saw many post like http://www.telerik.com/community/forums/aspnet-ajax/ajax/402721.aspx .But couldn't solve the issue here.Please help me in this.
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"> <AjaxSettings><telerik:AjaxSetting AjaxControlID="rbSave"> <UpdatedControls> <%--<telerik:AjaxUpdatedControl ControlID="rbSave" />--%> <telerik:AjaxUpdatedControl ControlID="PanelMsg" /> <telerik:AjaxUpdatedControl ControlID="lblRegnumber" /> <telerik:AjaxUpdatedControl ControlID="LblRegnNo" /> <telerik:AjaxUpdatedControl ControlID="lbltitle" /> <telerik:AjaxUpdatedControl ControlID="lblname" /> <telerik:AjaxUpdatedControl ControlID="lbldob" /> <telerik:AjaxUpdatedControl ControlID="lblAge" /> <telerik:AjaxUpdatedControl ControlID="lblfile" /> <telerik:AjaxUpdatedControl ControlID="lblnation" /> <telerik:AjaxUpdatedControl ControlID="Panelmobile" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadPageView id="RadPageView4" runat="server" > <table width="800px"> <tr style="height:30px;"> <td align="center" class="heading_style"> Appointment with Doctor </td> </tr> <tr> <td> <asp:Panel ID="PanelMsg" runat="server"> <span id="Message" runat="server" class="errormessage" Style="font: 10pt Verdana;font-weight:700;color:Red"></span> </asp:Panel> </td> </tr> <tr> <td> <asp:Label ID="lblRegnumber" runat="server" Text=" Regn No. " Visible="false" Style="font: 10pt Verdana;font-weight:700;color:Red" ></asp:Label> <asp:Label ID="LblRegnNo" runat="server" Visible="false" Style="font: 10pt Verdana;font-weight:700;color:Red"></asp:Label> </td> </tr> <tr> <td align="center"> <div> <table cellpadding="5" cellspacing="0"> <tr><td align="left" >Clinic</td> <td align="left"> <telerik:RadComboBox ID="RCClinic" runat="server" Width="200px" DropDownWidth="500px" Height="200px" EmptyMessage="Select Clinic" EnableLoadOnDemand="true" Filter="StartsWith" OnItemsRequested="RCClinic_ItemsRequested" HighlightTemplatedItems="true" OnSelectedIndexChanged="RCClinic_SelectedIndexChanged" AutoPostBack="true" > <HeaderTemplate> <table style="width: 500px" cellspacing="0" cellpadding="0"> <tr> <td style="text-align:left;width:250px">Clinic </td> <td style="text-align:left;width:250px">Doctor </td> </tr> </table> </HeaderTemplate> <ItemTemplate> <table style="width: 500px" cellspacing="0" cellpadding="0"> <tr> <td style="text-align:left;width:250px"> <%# DataBinder.Eval(Container, "Text")%> </td> <td style="text-align:left;width:250px"> <%# DataBinder.Eval(Container, "Attributes['doc_name']")%> </td> </tr> </table> </ItemTemplate> </telerik:RadComboBox> </td> </tr> <tr> <td align="left"> Doctor </td> <td align="left"> <%-- <asp:UpdatePanel ID="PanelDr" runat="server" UpdateMode="Conditional"> <Triggers> <asp:AsyncPostBackTrigger ControlID="RCClinic" /> </Triggers> <ContentTemplate>--%> <telerik:RadTextBox ID="RCDoctor" runat="server" Width="200px" ></telerik:RadTextBox> <%--</ContentTemplate> </asp:UpdatePanel>--%> </td> <td> <%-- <asp:UpdatePanel ID="PanelDur" runat="server" UpdateMode="Always"> <Triggers> <asp:AsyncPostBackTrigger ControlID="RCClinic" /> </Triggers> <ContentTemplate>--%> <asp:DropDownList ID="RCDuration" runat="server" Width="75px" AutoPostBack="true" OnSelectedIndexChanged="RCDuration_SelectedIndexChanged" > <asp:ListItem Text="Select" Value="0" /> <asp:ListItem runat="server" Text="5 Min" Value="5" /> <asp:ListItem runat="server" Text="10 Min" Value="10" /> <asp:ListItem runat="server" Text="15 Min" Value="15" /> <asp:ListItem runat="server" Text="20 Min" Value="20" /> <asp:ListItem runat="server" Text="25 Min" Value="25" /> <asp:ListItem runat="server" Text="30 Min" Value="30" /> <asp:ListItem runat="server" Text="35 Min" Value="35" /> <asp:ListItem runat="server" Text="40 Min" Value="40" /> <asp:ListItem runat="server" Text="45 Min" Value="45" /> <asp:ListItem runat="server" Text="50 Min" Value="50" /> <asp:ListItem runat="server" Text="55 Min" Value="55" /> <asp:ListItem runat="server" Text="60 Min" Value="60" /> </asp:DropDownList> <%-- </ContentTemplate> </asp:UpdatePanel> --%> </td> </tr> <tr> <td align="left" > App. Time </td> <td align="left"> From <telerik:RadTimePicker ID="RCFromTime" runat="server" Width="75px" Culture="en-US" TimeView-TimeFormat="t" DateInput-DateFormat="h:mm tt" DateInput-DisplayDateFormat="h:mm tt" Skin="Web20" > <TimeView ID="TimeView1" StartTime="08:00:00" EndTime="20:00:00" Height="100px" Width="250px" ShowHeader="False" runat="server"></TimeView> </telerik:RadTimePicker> </td> <td align="left"> To <telerik:RadTimePicker ID="RCToTime" runat="server" Width="75px" Culture="en-US" TimeView-TimeFormat="t" DateInput-DateFormat="h:mm tt" DateInput-DisplayDateFormat="h:mm tt" Skin="Web20"> <TimeView ID="TimeView2" StartTime="08:00:00" EndTime="20:00:00" Height="100px" Width="250px" ShowHeader="False" runat="server"></TimeView> </telerik:RadTimePicker> <%-- </ContentTemplate> </asp:UpdatePanel>--%> </td> </tr> </table> <table width="800px"> <tr> <td align="right"> <telerik:RadButton ID="A_prevButton" runat="server" Text="Previous" Skin="WebBlue" OnClick="A_prevButton_Click"> <Icon SecondaryIconCssClass="rbPrevious" SecondaryIconRight="4" SecondaryIconTop="6" /> </telerik:RadButton> <telerik:RadButton ID="A_nextButton" runat="server" Text="Next" Skin="WebBlue" OnClick="A_nextButton_Click"> <Icon SecondaryIconCssClass="rbNext" SecondaryIconRight="4" SecondaryIconTop="6" /> </telerik:RadButton> </td> </tr> </table> </div> </td> </tr> </table> </telerik:RadPageView>