title: Register javascript array from code behind in facebook
body: <p>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:</p>
  
  <pre><code>string ArrVal = "";
          string Sep = "";
          for (int i = 0; i &lt; 17; i++)
          {   
              ArrVal += Sep + FilesCount[i].ToString();
              Sep = ",";
          }         
          Page.ClientScript.RegisterArrayDeclaration("FilesArr", ArrVal);
  </code></pre>
  
  <p>And the Client code is :</p>
  
  <pre><code>var FileName = FilesArr[0];
  </code></pre>
  
  <p>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</p>
  
  <p>can any one tell me why this problem occurrs ? </p>
  
  <p>Thanks in advance for any reply and trial.</p>