I added dynamicly infragistics webpanel in my codebehind using :
placeHolder.Controls.Add(ctlWebpanel);
but i got this javascript error in my ASP.net page in runtime :
‘currentStyle’ is null or not an object
How to set the style to remove that error ?
Thanks Brian for your concern. I find out that what was missing is css style class. I just setted the property cssClass dynamicly when creating my control and it works !
But what I still don’t understand is why It’s mandatory to set it dynamicly when you don’t have to if you added it directly in design.