ajax in calentor control
<p>Im using ajax update panel .... in calentor control when it run first time i can select datecontrol if i select any dropdown then the post back has been occured then i cant select calender date control....Javascript error ocurred..
how can i solve this proble?</p>

<pre><code>  &lt;ajax:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
                            &lt;ContentTemplate&gt;
                                &lt;table align="center"&gt;
                                    &lt;tr&gt;
                                        &lt;td&gt;
                                            &lt;asp:Label ID="LabelPaymentno" runat="server" Text="&lt;%$ Resources:TJFAT310, LabelPaymentno %&gt;"&gt;&lt;/asp:Label&gt;&lt;/td&gt;
                                        &lt;td&gt;
                                            &lt;asp:DropDownList ID="DropDownListPaymentno" runat="server" AutoPostBack="True" OnSelectedIndexChanged="Ddl_Pymntno_SelectedIndexChanged"
                                                Width="100px" TabIndex="1"&gt;
                                            &lt;/asp:DropDownList&gt;
                                            &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="DropDownListPaymentno"
                                                SetFocusOnError="True" ValidationGroup="req"&gt;*&lt;/asp:RequiredFieldValidator&gt;&lt;/td&gt;
                                        &lt;td&gt;
                                            &lt;asp:Label ID="LabelPostingdate" runat="server" Text="&lt;%$ Resources:TJFAT310, LabelPostingdate %&gt;"&gt;&lt;/asp:Label&gt;&lt;/td&gt;
                                        &lt;td style="width: 176px"&gt;
                                            &lt;Teja:DateTime ID="Postingdate" runat="server" EnableViewState="true" TabIndex="2"
                                                Enable="true" /&gt;
                                        &lt;/td&gt;
                                        &lt;td&gt;
                                            &lt;asp:Label ID="LabelPayableto" runat="server" Text="&lt;%$ Resources:TJFAT310, LabelPayableto %&gt;"&gt;&lt;/asp:Label&gt;&lt;/td&gt;
                                        &lt;td&gt;
                                            &lt;asp:TextBox ID="TextBoxPayableto" runat="server" TabIndex="3"&gt;&lt;/asp:TextBox&gt;&lt;/td&gt;
                                    &lt;/tr&gt;
                                    &lt;tr&gt;
                                        &lt;td&gt;
                                            &lt;asp:Label ID="LabelLedgercode" runat="server" Text="&lt;%$ Resources:TJFAT310, LabelLedgercode %&gt;"&gt;&lt;/asp:Label&gt;&lt;/td&gt;
                                        &lt;td&gt;
                                            &lt;asp:DropDownList ID="DropDownListLedgercode" runat="server" Width="100px" TabIndex="4"&gt;
                                            &lt;/asp:DropDownList&gt;
                                            &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="DropDownListLedgercode"
                                                SetFocusOnError="True" ValidationGroup="req"&gt;*&lt;/asp:RequiredFieldValidator&gt;&lt;/td&gt;
                                        &lt;td&gt;
                                            &lt;asp:Label ID="LabelAccountcode" runat="server" Text="&lt;%$ Resources:TJFAT310, LabelAccountcode %&gt;"&gt;&lt;/asp:Label&gt;&lt;/td&gt;
                                        &lt;td&gt;
                                            &lt;asp:DropDownList ID="DropDownListAccountcode" runat="server" AutoPostBack="True"
                                                OnSelectedIndexChanged="Ddl_Acno_SelectedIndexChanged" TabIndex="5"&gt;
                                            &lt;/asp:DropDownList&gt;
                                            &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="DropDownListAccountcode"
                                                SetFocusOnError="True" ValidationGroup="req"&gt;*&lt;/asp:RequiredFieldValidator&gt;&lt;/td&gt;
                                        &lt;td&gt;
                                            &lt;asp:Label ID="LabelPartyname" runat="server" Text="&lt;%$ Resources:TJFAT310, LabelPartyname %&gt;"&gt;&lt;/asp:Label&gt;&lt;/td&gt;
                                        &lt;td&gt;
                                            &lt;asp:TextBox ID="TextBoxAccountname" runat="server" Enabled="False" CssClass="displayitem"&gt;&lt;/asp:TextBox&gt;
                                        &lt;/td&gt;
                                    &lt;/tr&gt;
                                    &lt;tr&gt;
                                        &lt;td&gt;
                                            &lt;asp:Label ID="LabelBankledgercode" runat="server" Text="&lt;%$ Resources:TJFAT310, LabelBankledgercode %&gt;"&gt;&lt;/asp:Label&gt;&lt;/td&gt;
                                        &lt;td&gt;
                                            &lt;asp:DropDownList ID="DropDownListBankledgercode" runat="server" AutoPostBack="True"
                                                OnSelectedIndexChanged="Ddl_bnkcode_SelectedIndexChanged" Width="100px" TabIndex="6"&gt;
                                            &lt;/asp:DropDownList&gt;
                                            &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="DropDownListBankledgercode"
                                                SetFocusOnError="True" ValidationGroup="req"&gt;*&lt;/asp:RequiredFieldValidator&gt;&lt;/td&gt;
                                        &lt;td&gt;
                                            &lt;asp:Label ID="LabelBankaccountcode" runat="server" Text="&lt;%$ Resources:TJFAT310, LabelBankaccountcode %&gt;"&gt;&lt;/asp:Label&gt;&lt;/td&gt;
                                        &lt;td&gt;
                                            &lt;asp:DropDownList ID="DropDownListBankaccountccode" runat="server" AutoPostBack="True"
                                                OnSelectedIndexChanged="Ddl_bnkacno_SelectedIndexChanged" TabIndex="7"&gt;
                                            &lt;/asp:DropDownList&gt;
                                            &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="DropDownListBankaccountccode"
                                                SetFocusOnError="True" ValidationGroup="req"&gt;*&lt;/asp:RequiredFieldValidator&gt;&lt;/td&gt;
                                        &lt;td&gt;
                                            &lt;asp:Label ID="LabelBankname" runat="server" Text="&lt;%$ Resources:TJFAT310, LabelBankname %&gt;"&gt;&lt;/asp:Label&gt;&lt;/td&gt;
                                        &lt;td&gt;
                                            &lt;asp:TextBox ID="TextBoxBankaccountname" runat="server" Enabled="False" CssClass="displayitem"&gt;&lt;/asp:TextBox&gt;
                                        &lt;/td&gt;
                                    &lt;/tr&gt;
                                    &lt;tr&gt;
                                        &lt;td align="center" colspan="5"&gt;
                                            &lt;asp:Label ID="Labelvalidation" runat="server" ForeColor="Red"&gt;&lt;/asp:Label&gt;&amp;nbsp;&lt;/td&gt;
                                        &lt;td&gt;
                                            &lt;asp:Button ID="ButtonSubmit" runat="server" Text="&lt;%$ Resources:TJFAT310, ButtonSubmit %&gt;"
                                                OnClick="Btn_Submit_Click" ValidationGroup="req" CssClass="buttonNew" TabIndex="8" /&gt;&lt;/td&gt;
                                    &lt;/tr&gt;
                                    &lt;tr&gt;
                                        &lt;td colspan="6" align="center"&gt;
                                            &lt;asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="SingleParagraph"
                                                HeaderText="* mandatory column" ValidationGroup="req" /&gt;
                                        &lt;/td&gt;
                                    &lt;/tr&gt;
                                &lt;/table&gt;
                            &lt;/ContentTemplate&gt;
                        &lt;/ajax:UpdatePanel&gt;
</code></pre>

<p>this is code i can select calender code after postback</p>

<p>but if i use update panel for every control it can work</p>
