Hi all,
I am adding a webpanel to a control panel in my codebehind. There are no build errors. When i run the website i get this error:
Microsoft JScript runtime error: 'currentStyle' is null or not an object
It breaks in the file ScriptResource.axd?d=blablablabla
/* * Infragistics WebMisc CSOM Script: ig_webpanel.js * Version 7.3.20073.38 * Copyright(c) 2001-2006 Infragistics, Inc. All Rights Reserved. */
ig_WebPanel.prototype._getCurrentStyle=function(elem) { var style = elem.currentStyle; if(style == null) { var w = document.defaultView; if(w == null) w = window; if(w.getComputedStyle) style = w.getComputedStyle(elem, ''); } return style; }
Thank in advance
Hello,
I am now getting the same problem -
"'currentStyle' is null or not an object"
I only get this one onepage of my web application....
I doubt suppose anyone ever found a solution (without installing a patch on all of the client machines) did they?
Thanks Simon
Can you post the code that you're using to create your WebPanel?
My guess is that if you're creating the control at runtime, then you might be adding the control to the Page's controls collection instead of the Form's Controls collection.
-SteveZ
Just for the record -
I eventually managed to solve this, it was a rookie mistake on my part. I left some code commented out on the aspx page.