process html form with asp.net c#
<p>I have the following table which sits inside an asp.net form. Im trying to process it using an onclick event on a button. but the elements are html text boxes and html check boxes all with names that are arrays</p>

<p>ive tried doing this</p>

<pre><code>for(int i = 0; i &lt; Request["pageimagesOrder"].Length; i++) 
{
      Response.Write(Request["pageimagesOrder"][i]);
}
</code></pre>

<p>but it just fell over. Im sure its something simple but like all things, there only simple if you know</p>

<p>thanks</p>

<pre><code>&lt;table&gt;
      &lt;tr&gt;
        &lt;td width="200"&gt;&lt;img src="/CaptionImages/Thmbs/1.png" width="196" height="140" /&gt;&lt;/td&gt;
        &lt;td width="300" valign="top"&gt;caption txt 1&lt;/td&gt;
        &lt;td width="25" valign="top"&gt;&lt;input style="width:20px;" type="text" name="pageimagesOrder[1]" value="1 "&gt;&lt;/td&gt;
        &lt;td width="100" valign="top"&gt;&lt;input type="checkbox" value="1" name="pageimagesDelete[]" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td width="200"&gt;&lt;img src="/CaptionImages/Thmbs/2.png" width="196" height="140" /&gt;&lt;/td&gt;
        &lt;td width="300" valign="top"&gt;caption txt 1&lt;/td&gt;
        &lt;td width="25" valign="top"&gt;&lt;input style="width:20px;" type="text" name="pageimagesOrder[2]" value="2 "&gt;&lt;/td&gt;
        &lt;td width="100" valign="top"&gt;&lt;input type="checkbox" value="2" name="pageimagesDelete[]" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td width="200"&gt;&lt;img src="/CaptionImages/Thmbs/3.png" width="196" height="140" /&gt;&lt;/td&gt;
        &lt;td width="300" valign="top"&gt;caption txt 1&lt;/td&gt;
        &lt;td width="25" valign="top"&gt;&lt;input style="width:20px;" type="text" name="pageimagesOrder[3]" value="3 "&gt;&lt;/td&gt;
        &lt;td width="100" valign="top"&gt;&lt;input type="checkbox" value="3" name="pageimagesDelete[]" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td width="200"&gt;&lt;img src="/CaptionImages/Thmbs/5.png" width="196" height="140" /&gt;&lt;/td&gt;
        &lt;td width="300" valign="top"&gt;caption txt 1&lt;/td&gt;
        &lt;td width="25" valign="top"&gt;&lt;input style="width:20px;" type="text" name="pageimagesOrder[5]" value="4 "&gt;&lt;/td&gt;
        &lt;td width="100" valign="top"&gt;&lt;input type="checkbox" value="5" name="pageimagesDelete[]" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td width="200"&gt;&lt;img src="/CaptionImages/Thmbs/7.png" width="196" height="140" /&gt;&lt;/td&gt;
        &lt;td width="300" valign="top"&gt;caption txt 2&lt;/td&gt;
        &lt;td width="25" valign="top"&gt;&lt;input style="width:20px;" type="text" name="pageimagesOrder[7]" value="5 "&gt;&lt;/td&gt;
        &lt;td width="100" valign="top"&gt;&lt;input type="checkbox" value="7" name="pageimagesDelete[]" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
&lt;/table&gt;
</code></pre>
