Im trying to set an array in Javascript, and then give it values from the DataTable in the code behind like that :
for (var i = 0; i < '<%=dt_questionVideo.Rows.Count - 1 %>'; i++) {
videoQarray[i] = '<%=Convert.ToInt32(dt_questionVideo.Rows['+i+'][0]) %>';
}
Im getting an error
Too many characters in character literal
how can I manuover this one ?
You can’t really do it that way. If you need a javascript array like that, you’re going to have to do something like this in the code behind: