Pass array (or TList) from C# code behind to external javascript? -
i need pass list (or array) of ip addresses , other information c# code behind javascript function, in external .js..
also, list may long (1000+ items) .. efficient way this? can provide small example? should use json serialization?
var myobject = <%= justserializeasjson(...) %>;
... or pass function whatever. point json valid javascript literal can drop in number of places. don't worry "efficiency" here unless there profiled problem. both generation , javascript parsing should really fast. (bing maps loads 1mb file in js!)
Comments
Post a Comment