How do I pass an array I have created on the server side onto the client side for manipulation by Javascript?
Any pseudo code will help
How do I pass an array I have created on the server side onto the client side for manipulation by Javascript?
Any pseudo code will help
Convert it to string representation of a javascript array ("['val1','val2','val3']") and shove it into the value field of a hidden input.
Another way would be to use the RegisterArrayDeclaration method of the Page object (deprecated) or in the ClientScriptManager class. See MSDN for details.
Easiest way is to convert it to json. Then just put it at the top of the page in a variable. I've found this the best json implementation for .net: http://litjson.sourceforge.net/