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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesAjaxControlToolkit (3.5)  in Modules (VS2008)AjaxControlToolkit (3.5) in Modules (VS2008)
Previous
 
Next
New Post
9/9/2010 7:33 PM
 

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

 
New Post
1/5/2011 7:30 PM
 
Did you get an answer for this yet?  I'm running into same issue here.
 
New Post
1/25/2011 9:26 AM
 
Same problem here.   No ajax on my site is working.   Running DNN.5.06.1  ... VS 2008.   Didn't solve the problem.   VS 2008 cant access the web.config and my module doesn't seem to register the 'AjaxControlToolkit'.    VS reports an 'unregistered tag'.

Does anyone have a solution ?
 
New Post
3/16/2011 9:13 PM
 
The only good think of DNN 05.06.01 and AJAX is that it is creating a community of diappointment. I was exceited when I saw how easy was to use AJAX in normal ASP.NET page, and ran happily to my ASCX for DNN in order to put all the AJAX-shine to into DNN... but... nothing happened.
I got all the same erros you have mentioned here, and no answers.
Once again... "wait until 05.06.02" ???
 
New Post
3/16/2011 10:43 PM
 
Hi again... this is funny. I just could make it work.
I mean: I have an VIEW.ASCX control file which is part of a custom Module I've been dealing with, and I managed to make the Calendar Extender appears and work.

I guess you wanna know how. :)

1. I removed all the AJAX controls I had in my "AJAX Control Toolkit" tab in my Visual Studio 2008 (not Express). I also removed the tab.
2. I downloaded something I guess is a previous version of the ajaxcontroltoolkit.dll, from http://ajaxcontroltoolkit.codeplex.com/releases/view/33804
(I found that sugestion here http://dnnblog.lexicoreinc.com/2010/12/dotnetnuke-5-and-ajax-for-net-35.html )
3. I unzipped the downloaded file (oops, I forgot to "unlock" it, as the asp.net site told me. Anyway... it worked).
4. I took the AjaxControlToolkit.dll file and put it in "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE". (I did that because I alway saw that VS tried to look for the file there).
5. In VS again, with my view.ascx opened, I created the "AJAX Control Toolkit" tab in the toolbox, and then right-clicked below it to "Choose elements", went to the folder I said before and choose the AjaxControlToolkit.dll.
6- Once VS populated the toolbox, I selected a textfield from my ascx, clicked on the little arrow it has, selected "Add externder", there it was my very expected "Calendar Externder", I selected it, and saved the page. Generate it, and gave it a try.

The result: ¡The Glory! - clicking on the textbox, the calendar pops up and once I select a date, it sends it to the textbox.

Now I have to see if I can make it work in my production environment.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesAjaxControlToolkit (3.5)  in Modules (VS2008)AjaxControlToolkit (3.5) in Modules (VS2008)


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