无法使AJAX日历扩展程序在DotNetNuke中工作 [英] Can't get AJAX Calendar Extender to work in DotNetNuke

查看:80
本文介绍了无法使AJAX日历扩展程序在DotNetNuke中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一些有用的信息:
DotNetNuke 5.4.1
AjaxControlToolkit 3.5.40412
.NET 3.5
Visual Studio 2008

我已经编写了多个DotNetNuke模块,但这是我第一次尝试并入Ajax Control Toolkit中的任何扩展程序.

我将当前模块简化为一个文本框和一个日历扩展程序,但我无法使扩展程序正常工作.该模块已加载,但页面上出现一堆JavaScript错误.最具描述性的消息是:

AjaxControlToolkit需要ASP.NET Ajax 4.0脚本.确保引用了正确版本的脚本.如果使用的是ASP.NET ScriptManager,请切换到AjaxControlToolkit.dll中的ToolkitScriptManager.

我已经尝试过一些方法,但是似乎没有任何效果.

有想法吗?
标记:

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:

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

推荐答案

显然是版本不匹配.看起来您正在使用内置Ajaxtoolkit的.NET4.0.

您尝试的方式将适用于早期版本.请尝试使用VS2008进行采样,或者将DLL引用为应用程序中的错误状态. :thumbsup:
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:


嗨乔,
我的DotNetNuke模块有相同的问题.在哪里可以找到ajaxtoolkit v3.0.20229.0?

您能否指导我,以解决此问题.

谢谢
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


这篇关于无法使AJAX日历扩展程序在DotNetNuke中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆