Using array of asp inside javascript is not working in the loop
- by Poomjai
I have a problem that when i bring the array of asp and use it in the javascript, When i use the counter (i++) and print for each index of array just like   "<%=app[i] %"  and it is not return the value back to me. Please help me i solve this problem for a day !!!-Thanks ^_^
edit
 <%
    String[] asp = {"a","b","c"};
     %>
      <script language="javascript">
      for(var i=0;i<"<%=asp %>".length;i++){
      document.write("<%=asp[i] %>")
      }
      </script>
the error is = Compiler Error Message: CS0103: The name 'i' does not exist in the current context