You need to include it as a javascript array declaration on the page. There are several ways to do this, but usually it means turning the array into the text you write on the page, possibly using the ClientScriptManager.
I hope for better integration with javascript in the upcoming ASP.Net validation. Moving the value of a server variable — any server variable — a simple, single-line function call must be supported for the client. No need for reverse flips.
Joel Coehoorn
source share