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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top