Register javascript array from code behind in facebook
- by Ahmy
I need to set a javascript array from code behind using C# in Asp.Net2008 the problem now is that when i register the array using the following C# code:
string ArrVal = "";
string Sep = "";
for (int i = 0; i < 17; i++)
{
ArrVal += Sep + FilesCount[i].ToString();
Sep = ",";
}
Page.ClientScript.RegisterArrayDeclaration("FilesArr", ArrVal);
And the Client code is :
var FileName = FilesArr[0];
in any web application it is working well but at my application that is released in the facebook platform the javascript code doesn't see the array but in ordinary web application the javscript code see the registered array
can any one tell me why this problem occurrs ?
Thanks in advance for any reply and trial.