title: Pass asp.net repeater items to javascript array
body: <p>I am building a quick web app to display locations markers on google maps from sql server database. On my, aspx page I have a repeater control that displays the lat long of the locations in the database. </p>
  
  <pre><code> &lt;asp:Repeater runat="server" ID="rptMarkers"&gt;
       &lt;ItemTemplate&gt;
           title: '&lt;%# Eval("LocationName")%&gt;'&lt;br /&gt;
           lat : '&lt;%# Eval("Latitude") %&gt;' &lt;br /&gt;
           long : '&lt;%# Eval("Longitude") %&gt;
       &lt;/ItemTemplate&gt;
  
       &lt;SeparatorTemplate&gt;
           ,
       &lt;/SeparatorTemplate&gt;
   &lt;/asp:Repeater&gt; 
  </code></pre>
  
  <p>Now what I need guidance with is , how to pass the values returned in both 
  <code>'&lt;%# Eval("Latitude")%&gt;'</code> and <code>&lt;%# Eval("Latitude") %&gt;</code> into a javascript array. So that I can use the values in the javascript array to build map  markers. I know how to display the markers in google map with when I get the javascript lat long arrays. Only using the values from the repeater to build the javascript array is my challenge</p>