I'm building some Web Application using aspx and C# and i want to create an 2D String array in the java script but to initialize it with an array from my c# code. I used the "<% ... %> for it but it didn't work. My code is like this:
iconColors = new String[,];
protected void Page_Load(object sender, EventArgs e)
{ // some code that filling the array
}
in Java Script:
<script>
var seatColor = "<%= iconColors %>";
for (.... i and j....) {// its a double loop
document.write("....."+iconColos[i,j]+"...");
}
</script>
again, it doesn't work. help somebody?