Accessing ArrayList in Javascript - ASP.Net MVC2
Posted
by Shrikant
on Stack Overflow
See other posts from Stack Overflow
or by Shrikant
Published on 2010-05-10T20:21:15Z
Indexed on
2010/05/10
20:24 UTC
Read the original article
Hit count: 228
Hi
I have ArrayList in my Model and want to iterate through it in my javascript. I am using following code but its giving me error : CS0103: The name 'i' does not exist in the current context
for(var i=0; i <= <%=Model.KeyList.Count%>; i++)
{
alert('<%=Model.KeyList[i]%>');
}
How to get rid of this. its urgent...Please.
© Stack Overflow or respective owner