title: Dynamically create javascript array with c# code behind
body: <p>I am updating an old classic ASP site to a new .net 3.5 version.  The page has a custom list control which the client (my boss) wants to keep.  This list control requires several arrays in order to work correctly.  the array is a multi-dimensional list of publications.  This is what it looks like:</p>
  
  <pre><code>var publicationTable = [
      [31422,"Abilene Reporter News","Abilene","TX",false,"D",0],
      [313844,"Acadiana Weekly","Opelousas","LA",false,"W",1],
      [527825,"Action Advertiser","Fond du Lac","WI",false,"W",2]...n]
  </code></pre>
  
  <p>I want to generate this array server side and register it.  I have looked at the <a href="http://msdn.microsoft.com/en-us/library/system.web.ui.clientscriptmanager.registerarraydeclaration.aspx" rel="nofollow">msdn</a> but this is a little trivial.  The conceptual issue is that the array is a mixture of string and ints and I am not sure how to recreate this, so how?</p>