title: Get C# ArrayList into JavaScript Array
body: <p>I am working on a asp.net project and facing a little problem which I unable to get proper example from google search.</p>
  
  <p>In my project I have an ArrayList() named arrayList. I just want to get this arrayList in a JavaScript array.</p>
  
  <p>My ArrayList is just like below code :</p>
  
  <p>C# code :</p>
  
  <pre><code>    ArrayList arrayList = new ArrayList();
      arrayList.Add(1);
      arrayList.Add(2);
      arrayList.Add(3);
  </code></pre>
  
  <p>JavaScript Code :</p>
  
  <pre><code>    var jsArray = new Array();
  </code></pre>
  
  <p>Here I need to get c# whole arrayList into JavaScript array named 'jsArray' .</p>
  
  <p>How can I get this? </p>
  
  <p>Thanks.</p>