I have this “little” problem:
I’m trying to use AjaxControlToolkit (AjaxControlToolkit.dll 3.5.40412.2) in my custom module.
I tring to use the CalendarExtender extender for example, because is veri esay to implement.
First I First I change the target FrameWork to .NET Framework 3.5 this will enable the Ajax control tool kit controls tab.
Then I add add a ToolkitScriptManager from the AjaxControlToolkit tab
After that I add a textbox from the standar Tab to my page (ascx) and then a CalendarExtender from the AjaxControlToolkit tab.
I configure the calendar extender so the result is this.
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<br />
<asp:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="TextBox2">
</asp:CalendarExtender>
If you put this code in a regular web site project and run the project it will work. When you click on the textbox I will display the calendar.
If you run this code in your DNN module you’ll get the fallowing error:
A critical error has occurred.
Object reference not set to an instance of an object.
If I change ToolkitScriptManager and use this one ScriptManager
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<br />
<asp:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="TextBox2">
</asp:CalendarExtender>
I will get this error
A critical error has occurred.
Object reference not set to an instance of an object.
And finily if I use only the CalendarExtender
<ajx:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox1"
PopupButtonID="btnInUpdatePanel">
</ajx:CalendarExtender>
I get these java script errors
//////////////////////////////////////////////////////////////////////////////////////////////
Mensaje: 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.
Línea: 22
Carácter: 5
Código: 0
URI: http://localhost/DNNRoot/ScriptResource.axd?d=D-pQC6LQjZVrp1F_J_FqrWFBqrgc1NQJOG1Sj8V2oXf_RDDgwQarvrHT6ndR4XWa0&t=11e6618b
//////////////////////////////////////////////////////////////////////////////////////////////
Mensaje: 'Sys.Extended.UI.TextBoxWrapper' is null ori s not an object
Línea: 35
Carácter: 5
Código: 0
URI: http://localhost/DNNRoot/ScriptResource.axd?d=D-pQC6LQjZVrp1F_J_FqrT_LReIRMy1PdBwwaUl20Ge8bSJ2TcsGfv0cLxpxEYpU-wCN7smArzA1&t=11e6618b
Those any one knows how to manages this issue o knows how to work in DNN with the AjaxControlToolkit ?????