Hi,
I have a problem with Ajax calendar extender in DNN.
I am using DotNetNuke Community 05.06.02 and AjaxControlToolkit 3.5
After adding calendar extender in my WebUserControl it is not working, and from Error Console I found an error.
Markup code:
<asp:UpdatePanel ID="updatepanel2" runat="server">
<ContentTemplate>
<div>
<asp:Label ID="lblDate" runat="server">Date :</asp:Label>
<asp:TextBox ID="txtDate" runat="server"></asp:TextBox>
<aj:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate">
</aj:CalendarExtender>
</div>
</ContentTemplate>
</asp:UpdatePanel>
Error:
AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll
After that I added the ToolkitScriptManager,
<aj:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</aj:ToolkitScriptManager>
Then I got an error in DNN page:
A critical error has occurred.
Object reference not set to an instance of an object.
Need help immediately.