本文介绍了DotNetNuke 6是否支持Ajax控制工具包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人使用Ajax Control Toolkit成功地在DNN 6中工作模块吗?
当我们从DNN 5.x迁移到6.x时,我的模块停止工作。
模块编译没有错误,但出现客户端脚本错误:

Does anybody have successfully working module in DNN 6 with the Ajax Control Toolkit?My modules stopped working when we migrated from DNN 5.x to to 6.x.Modules compile without errors but I am getting client side script error:

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

根据信息,这似乎与Telerik的控件冲突我发现的。但是我没有找到任何解决方法。

Seems like this is conflict with Telerik's controls, according to information that I have found. But I didn't find any info how to fix it.

推荐答案

它可以一起工作,但是您需要做一些工作对DNN核心的修改。

It could work together, but you'll need do some modifications to the core of DNN.

以下是要做的事情:


  • 检查您是否使用最新版本的AjaxControlToolkit的.Net 4.0二进制文件(我能够通过Telerik 2011.01.519和ACT 2011年9月v4.1.50927使其适用于DNN 6.0.1)

  • 您的web.config中具有 System.Web.Extensions System.Web.Extensions.Design 的程序集绑定重定向版本4.0

  • 获取DNN源码包,找到 Library\Framework\AJAX.cs ,找到方法 AddScriptManager ,其中的RadScriptManager实例化,对于版本6.0.1,请查看第54行。再添加一个属性初始化器:
    EnableScriptCombine = false 。编译它(当然,在Release配置中),将DotNetNuke.dll放入DNN安装中。

  • Check that you're using latest version of .Net 4.0 binaries of AjaxControlToolkit (I was able to let it work for DNN 6.0.1 with Telerik 2011.01.519 and ACT September 2011 v4.1.50927)
  • Check that in your web.config you have assembly binding redirects for System.Web.Extensions and System.Web.Extensions.Design to the version 4.0
  • Take DNN source package, find Library\Framework\AJAX.cs, locate method AddScriptManager, instantiation of RadScriptManager in it, for the version 6.0.1 look into line 54. Add one more property initializer:EnableScriptCombine = false. Compile it (in Release configuration, of course), take DotNetNuke.dll and drop into your DNN installation.

您应该完成。

贷记到,尽管它说应该从2010.1.625起立即可用。不确定,是我弄错了它们还是重新引入了此错误。

Credits goes to Telerik support, despite it's stated there that it should work out of the box starting from 2010.1.625. Not sure, did I get them wrong, or they just reintroduced this bug.

P.S。 DNN支持发布11月的6.1.0版更新了Telerik控件,应该至少在他们看来可以解决此问题。

P.S. DNN support promises to release version 6.1.0 in November with updated Telerik controls, which should fix this issue, at least on their opinion.

这篇关于DotNetNuke 6是否支持Ajax控制工具包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-09 22:05