Getting JavaScript variable in embeded C# code
<p>I am trying to write a simple <em>for</em> in JS which uses an element from a list declared in C# code behind. Actually there is a problem here: <code>['i']</code> - compiler doesn't know what is <code>i</code>. </p>

<p>How can I write this for properly? </p>

<pre><code>for (var i = 0; i &lt; '&lt;%= poz.Count %&gt;'; i++) {
    var Latitude = '&lt;%= poz['i'].Latitude %&gt;';
}
</code></pre>
