Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Using AJAX ToolkitScriptManager in DNN 5.xUsing AJAX ToolkitScriptManager in DNN 5.x
Previous
 
Next
New Post
4/28/2010 10:46 AM
 

Hi there

I wonder if anybody can give me some advice about getting the Ajax Control Toolkit working in a DotNetNuke module?

Specifically, I have a DNN 5.02 installation using .NET3.5, into which I have an ASCX control loaded as a DNN module. The problem is, although I have the Control Toolkit installed into DNN as recommended, my AnimationExtender is not working, and I am thinking that it is because DNN is using its own ScriptManager rather than the ToolkitScriptManager control that is part of the Ajax Control Toolkit. I have tried adding the ToolkitScriptManager control to my DNN module, but this has two unfortunate effects:

1. The ASP.NET code for the ASCX control shows an error when I have the DNN website open in Visual Studio 2005:

This project references a prior version of System.Web.Extensions version 1.0.61025. To use ... AnimationExtender, you must ... replace the reference ... with version 3.5.0.0 or higher

(it says this even though I have 3.5.0.0 of AjaxControlToolkit.dll, System.Web.Extensions and System.Web.Extensions.Design installed in the GAC, and have removed all references to version 1.0.61025 in web.config for the DNN site)

2. When the module is added to a page, the module fails to load, with the error:

Object reference not set to an instance of an object at DotNetNuke.UI.Containers.ActionBase.getActionRoot()

Presumably this is because DNN fails to load ToolkitScriptManager, and I believe the AnimationExtender will not work with the standard ScriptManager, though please correct me if I am wrong about this. So the question is: how do I add the ToolkitScriptManager into a DotNetNuke module, without it fouling up the module? Or should the AnimationExtender work even with the standard ScriptManager native to DNN? Thanks very much for any guidance!

Regards

 

 
New Post
5/10/2010 7:36 PM
 
Paul, I found your post after researching how to enable AJAX functionality in my own modules. I'm not sure if you've found a solution to this yet, but I wanted to give you a few of links that I think may be of some assistance:

http://adefwebserver.com/dotnetnukehelp/Misc/Dotnetnuke_AJAX_modulei.htm
http://www.datasprings.com/Resources/ArticlesInformation/AJAXwDotNetNuke.aspx
http://www.datasprings.com/Resources/ArticlesInformation/DotNetNukewAJAXToolkit.aspx


I've yet to try this as I'm not at the office. I will try this myself tomorrow morning.
 
New Post
7/26/2010 4:06 PM
 
Have there been any further developments?  I am unable to use the current version of the AJAX Control Toolkit within DNN 5.4.  It appears that none of the controls are loaded, if I downgrade to a previous version of the toolkit AJAX works again.  I suspect it's caused by DNN using a different script manager rather than the one the toolkit requires.

Does anyone know of any workarounds that don't require modifying core dnn files?
 
New Post
8/4/2010 10:17 PM
 
Looks like this workaround solution works:

Modify Default.aspx to include
 
1. At the top:

    <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

2. Inside the form control, right after  <dnn:Form id="Form" runat="server" ENCTYPE="multipart/form-data" >:

    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager>

Also remove ScriptManager from your code behind page, e.g. DotNetNuke.Framework.AJAX.RegisterScriptManager();

Credit goes to Latiful Khan and his post at http://www.dotnetnuke.com/Community/F...
 
New Post
10/12/2010 6:10 PM
 
Hi, I am trying to use the extender control of Ajaxtoolkit 3.5(3.5.40412.2) in visual studio 2008 with dotnetnuke 5.x. I am struggling implement this feature as it end of with the error message saying as below: Error Message: 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 am in need of help. Please help me out with this issue. Thank you
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Using AJAX ToolkitScriptManager in DNN 5.xUsing AJAX ToolkitScriptManager in DNN 5.x


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out