views:

95

answers:

3

I've just updated to the AJAX Control Toolkit 3.5, changed the ScriptManager to the ToolkitScriptManager in my master page and now the following javascript error occurs when an Edit button is clicked:

"Object doesn't support this property or method"

The line of code cuasing the error is:

this._destroyTree(updatePanelElement);

Any initial ideas before I post masses of code?

A: 

My initial guess is that "this" is referring to something that doesn't implement _destroyTree, or _destroyTree doesn't accept a parameter of type updatePanelElement

Keep in mind that javascript is a little different than C# in the fact that "this" refers to the current owner of the exectuing method.

Jim B
Yes I need to confirm this. I'm waiting for my IE Options Advanced tab to be enabled so I can enable script debugging.
empo
A: 

I've run into similar issues going from ScriptManager to ToolkitScriptManager and while it isn't an elegant solution, the thing that has worked for me is to remove the ScriptManager, rebuild the solution (even if it throws errors) then add the ToolScriptManager in and rebuild.

For some reason the project was hanging on to the old object type reference (ScriptManager) and causing problems. It wasn't until it was removed and rebuilt (thus removing all instances of the object from the project) and added in that all the proper connections were set.

Dillie-O
It didn't work. But thanks anyway.
empo
A: 

I used a slightly older version of AJAX ControlToolkit 3.5 and the errors have now gone.

empo