Hi, I've a problem with an CalendarExtender control.
I've the CalendarExtender control in Multiview's view; in turn, the Multiview control is into updatepanel control.
The code would be roughly as follows:
<asp:ScriptManagerID="ScriptManager1"runat="server"EnablePartialRendering="true"EnableScriptGlobalization="true"EnableScriptLocalization="true">
</asp:ScriptManager>
<asp:UpdatePanelrunat="server"ID="upprueba"UpdateMode="Conditional">
<ContentTemplate>
<asp:MultiViewrunat="server"ID="mv1">
<asp:Viewrunat="server"ID="vista0">
nada
</asp:View>
<asp:Viewrunat="server"ID="View1">
<uc1:ctlAnteced_1ID="CtlAnteced_1_1"runat="server"IdPaciente="130"/>
</asp:View>
</asp:MultiView>
<asp:Buttonrunat="server"ID="boton1"Text="Vista1"/>
<asp:Buttonrunat="server"ID="boton2"Text="Vista2"/>
</ContentTemplate>
</asp:UpdatePanel>
Note: CtlAnteced_1_1 contains a CalendarExtender control.
The problem occurs in IE 6.0 (for Windows XP SP2) only; in IE 7.0 and IE 6.0 for Windows Server 2003 it works correctly. If not select a default view, then the CalendarExtender control shows backgroundless. In contrast, if I select a default view, the CalendarExtender control shows correctly.
I think this problem is because the updatepanel is preventing the script of CalendarExtender be updated on the page; but, why this doesn't happen in IE 7.0? There is something I can do to make this work in IE 6.0?
Thanks!!
What version of the AjaxControlToolkit are you using?
Hi jaimedp!! thank you for reply. I'm using september 20 AJAX Control Toolkit version's.
I was watching versions of ajax control toolkit and I discovered that the published verision that was prior to 09/20/2007. I updated the reference and it works fine now.
Thank you for your help!!
I hope this thread is still fresh enough.
I am having the same problem with the calendarextender control. The symptoms:
1. It works fine in a simple web form, e.g., a web form containing only a text box and the calendar extender.
2. It works in the very first View of a MultiView control, which is set as the default view at Page_Load. It does not work in any other View.
3. If I create a simple User Control with only a textbox and the calendar extender, then embed this user control in an aspx page, it does not work. Seems that the OP dj_javi707 had it work from a User Control, would you mind giving us a little hint? Thanks.
When it does not work, the javascript error message is always:
Error: 'AjaxControlToolkit' is undefined.
Code: 0
I think it maybe because the scriptmanager of ajax control toolkit is not loaded if the control is placed in a non-default view or when the user control is loaded.
Any idea to share?
Is you scriptmanager inside the multiview? in this case I think it will not work for anyother view that does not have the scriptmanager since it's not sent to the browser.