Posted on Jul 6, 2006
(permalink)
Hello, this is my strange behavior :
I'm using a PanelBar with templates. Inside a template, I'm using controls like radTabstrip for example.
In code behind, I access to this radTabstrip like this :
RadTabStrip1 = CType(RadPanelBar1.FindControl("RadTabStrip1"), RadTabStrip)
in javascript, I must access to the control too and I'm using :
var RadTabStrip1= <%= RadTabStrip1.ClientID %>;
My code behind is executed normaly but after an error occurs for the javascript line. The error alert window mentions :
An exception of type 'System.MethodAccessException' occurred in mscorlib.dll but was not handled in user code.
Additional information: Attempt to access the method failed.
If I try the javascript line :
var PanelBar1= <%= RadPanelBar1.ClientID %>;
it's ok. It's not ok before because controls are children of panelbar.
Can you help me ? Thank you.