Click here to Skip to main content
15,890,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Some helpful info:
DotNetNuke 5.4.1
AjaxControlToolkit 3.5.40412
.NET 3.5
Visual Studio 2008

I've written several DotNetNuke modules, but this is the first time I've tried to incorporate any extenders from the Ajax Control Toolkit.

I've reduced the current module to just a textbox and a calendar extender and I can't get the extender to work. The module loads, but I get a bunch of javascript errors on the page. The most descriptive message is:

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.

I've tried a few things already, but nothing seems to be working.

Ideas?
Markup:

<%@ Control language="vb" Inherits="jec.Modules.jec_AjaxTest1.Viewjec_AjaxTest1" AutoEventWireup="false" Explicit="True" Codebehind="Viewjec_AjaxTest1.ascx.vb" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<div>
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    <asp:CalendarExtender ID="TextBox1_CalendarExtender" runat="server"
        Enabled="True" TargetControlID="TextBox1">
    </asp:CalendarExtender>
</div>


Codebehind:
VB
Imports System.Web.UI
Imports System.Collections.Generic
Imports System.Reflection

Imports DotNetNuke
Imports DotNetNuke.Services.Exceptions
Imports DotNetNuke.Services.Localization

Namespace jec.Modules.jec_AjaxTest1

    Partial Class Viewjec_AjaxTest1
        Inherits Entities.Modules.PortalModuleBase

#Region "Event Handlers"
         Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Try

            Catch exc As Exception        'Module failed to load
                ProcessModuleLoadException(Me, exc)
            End Try
        End Sub

#End Region

    End Class

End Namespace
Posted
Updated 5-May-10 19:56pm
v2

It's clearly a version mismatch. Looks like you are using .NET4.0 where the Ajaxtoolkit is in-built.

The way you are trying will work for earlier versions. Either try a sample with VS2008 or reference the DLL's as the error states in your application. :thumbsup:
 
Share this answer
 
Comments
Joe_C 6-May-10 11:39am    
Version mismatch is the same conclusion I came to as well, but I can't figure out how to resolve the issue. The extenders work just fine with no errors in a standard aspx page. But, when used in an ascx wrapped as a DNN module, the extenders fail and I get errors.

I can't run .net 4.0 since I'm developing with VS 2008, which also means I can't run ajaxcontroltoolkit 4.0, I believe.

Which DLL are you suggesting I should reference that might resolve this?

I'm lead to believe the issue is on the DotNetNuke end, but I can't figure out what the problem is.

Any more suggestions?
Joe_C 7-May-10 13:43pm    
Ok, I got it to work.

As you suspected, it was a version mismatch. Figuring out what version to use was what ended up taking time, but ajaxtoolkit v3.0.20229.0 seems to be the one I need.

Thanks,

Joe
Dalek Dave 12-Oct-10 6:49am    
Looks a likely answer.
Hi Joe,
I have the same issue with my DotNetNuke module. Where can I find the ajaxtoolkit v3.0.20229.0 please?

Can you please guide me so as to fix this issue.

Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900