Рow to get the array in HTML file added from some side initialize in .cs file? Hope for your reply.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your question does not provide enough info. I will assume you mean the codebehind file (c#) when you say .cs file (what else is there to assume?) and your array is added in c#, which you want to access in js
Register your array as a string literal as script block
something like:
now in your html file, you can access them with javascript.
For 2D arrays,