Register javascript array from code behind in facebook
        Posted  
        
            by Ahmy
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Ahmy
        
        
        
        Published on 2009-07-19T09:32:59Z
        Indexed on 
            2010/04/13
            0:02 UTC
        
        
        Read the original article
        Hit count: 368
        
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.
© Stack Overflow or respective owner