Tabstrip + Multipage + Script Manager = javascript error

Answered (Not Verified) This post has 0 verified answers and 6 replies

Not Ranked
Posts: 2
thenomad@msn.com Posted: Thu Jan 7, 2010 @ 9:18 AM
My scenario is an ASPX page, with an ASCX user control, inside of this is a Tabstrip, and a Multipage.  Once upgrading from my 2005 version of ComponentArt to the 2009 one, suddenly several things are not working correctly - not surprising after such an upgrade.

Namely in this situation, when an <asp:ScriptManager for .NET 3.5 is placed on the page (anywhere), while the Tabstrip and Multipage are on the page, I get this javascript error:

Source: ScriptResource.axd?d=ByHQ1583t66fhQaVA-9GjR3fFXZ0LFl47ERd-m7YKLrW0sHLaLygbdshLIiaEoB1Zb7uqx3nFa2QIFsmKoWDFH3OHmRMZsqLuSi11PPqJvM1&t=ffffffffd001aff1
 
FireBug Error:
Sys.ArgumentNullException: Value cannot be null. Parameter name: element

Error Line:
[Break on this error]  {name: "element", domElement: true}\r\n
 
Error Procedure:
6576 var e = Function._validateParams(arguments, [
6577 {name: "element", domElement: true}
6578 ]);
6579 if (e) throw e;
6580 if (typeof(element.control) != 'undefined') throw Error.invalidOperation(Sys.Res.controlAlreadyDefined);
6581 Sys.UI.Control.initializeBase(this);
6582 this._element = element;
6583 element.control = this;
6584} 
 
-

When I remove the script manager, it all works - but I need the functionality of the script manager, so it's hardly an option.  Thanks.

All Replies

Top 10 Contributor
Posts: 6,149
Answered (Not Verified) stephen Posted: Fri Jan 8, 2010 @ 10:51 AM
Suggested by stephen

There's a good chance you're not using the correct framework build of the suite- we have one for each version of the framework. Check the version of Web.UI you're using (you do so by right clicking on the dll,choosing properties then checking the version tab). The last numbers should be .35, e.g. 2009.3.1203.35. if they're not, you should switch to the dll ending in 35. I hope this helps.

Stephen Hatcher, Developer Support Manager
Not Ranked
Posts: 2
thenomad@msn.com Posted: Fri Jan 8, 2010 @ 11:03 AM
I have verified I'm using the version ending in .35.  Can you reproduce the issue locally?

Thanks.
Top 10 Contributor
Posts: 6,149
stephen Posted: Fri Jan 8, 2010 @ 12:14 PM

Not using just the information above, unfortunately.  My test was admitedly very simple, though - just a page with a scrptmanager and a user control which in turn contained a tabstrip bound to a multipage. Can you perhaps post some code so I can see what you have?

Stephen Hatcher, Developer Support Manager
Top 25 Contributor
Posts: 179
conet Posted: Tue Jul 20, 2010 @ 4:57 AM
Hi

I've got the same issue. Once with the DataGrid when trying to cancel insert/edit with set_continue(true) and once with TabStrip/MultiPage when I have set some PageViews to visible="false"

The second one (PageView) brings a simple JS error without the ScriptManager on the page: "Uncaught TypeError: Cannot read property 'style' of null." Not nice but still working.

But it seems that the ScripgManager has some sort of own exception handling (resulting in the above error message) which breaks the CA functionality when a JS error occurs.

Some suggestions? 
Not Ranked
Posts: 8
jw Posted: Tue Jul 27, 2010 @ 7:54 PM
Have you received a resolution to this issue?
Top 10 Contributor
Posts: 6,149
stephen Posted: Fri Jul 30, 2010 @ 6:28 AM

Take a look at my response here- it may be relevant to what you're experiencing.

Stephen Hatcher, Developer Support Manager
Page 1 of 1 (7 items)