Passing Arrays to Javascript

  • Thread starter Thread starter hclarius
  • Start date Start date
H

hclarius

I am populating a Session array from a database query. I would like to
transfer this array to a javascript array to avoid going back to the server.
How?
 
Actually, I created a string using String.Join("|",Arrayname), then passed
the string to a hidden fields value and then passed the string to javascript
and created an array using stringname.split("|");

Thanks
 
Back
Top