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!)

msdn json serializer


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -