Aug 13, 2014, 5:25 PM
Calling with App.XXXX on js causes null references
When i try to do something like this on the example https://examples2.ext.net/#/Chart/Pie/Basic/ for show the Tips when the js function it's called causes a null reference to the ID of the chart. I checked the ID on the ext chart control and it's the same on both (the js function and the control). however i try with others controls and when i try call them with App.IDofmycontrol it's the same problem i receive this null exception (cheked with firebug). I have made all i need on differents ways to avoid use the call of my controls with App.IdOfMyContol but now i have the same problem on excecution time with code behind, when i try do something like this
aspx file
....
aspx.cs file
in some part of code i try modify a propiety of the label1
Exception:
0x800a138f - Error in JavaScript runtime: Unable to get the 'setText' property null reference or undefined
the part of code generated dinamically:
aspx file
....
<ext:Label runat="server" ID="label1" />
....aspx.cs file
in some part of code i try modify a propiety of the label1
label1.Text = "some text";
orlabel1.Show();
i receive the same error on the script debuger of visual studio on execution time from the eval codeException:
0x800a138f - Error in JavaScript runtime: Unable to get the 'setText' property null reference or undefined
the part of code generated dinamically:
App.Cuerpo_label1.setText("some text",true);
i have to configure the app resourcemanager of some way?
Last edited by Prybe; Aug 13, 2014 at 6:00 PM.