title: Turn php foreach syntax to asp.net using telerik RadGrid
body: <p>I am writing code in ASP.NET and I am new at it. I have two arrays, one of names and the other of ids.</p>
  
  <p>I want to create a table that would have the names in one column and two links which depend on the ids in the other column (edit to this specific name link, delete to this specific name link).</p>
  
  <p>In PHP I would do it this way:</p>
  
  <pre><code>&lt;table&gt;
   &lt;tr&gt;
    &lt;td&gt;Title&lt;/td&gt;
    &lt;td&gt;Actions&lt;/td&gt;
   &lt;/tr&gt;
   &lt;?php 
    $names = Array("a", "b", "c");
    $ids = Array("1", "2", "3");
    for($i = 0; $i &lt; 3; $i++):
   ?&gt;
    &lt;tr&gt;
     &lt;td&gt;
      &lt;?php echo $names[$i]; ?&gt;
     &lt;/td&gt;
     &lt;td&gt;
      &lt;a href="edit.php?id=&lt;?php echo $ids[$i]; ?&gt;"&gt;Edit&lt;/a&gt;
      &lt;a href="delete.php?id=&lt;?php echo $ids[$i]; ?&gt;"&gt;Delete&lt;/a&gt;
     &lt;/td&gt;
    &lt;/tr&gt;
   &lt;?php endforeach; ?&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I understand that you can write something very similar in ASP.NET, but I have to use RadGrids. A huge thanks for help!</p>
  
  <p>EDIT:
  If it is important, I get the data as an XML, and I chose to parse it as 2 arrays. If it is easier, I can parse it differently.</p>