multiple labels on webpage
<p>I have two arrays , one with values that I need to display on labels on webpage and the other with positions of the labels. I have 54 labels on webpage with label names  "lb1,lb2,...lb54"</p>

<p>suppose </p>

<pre><code>int [] values = {21,22,18,16,17.........22}

int [] positions = {12, 1,3,5,54,.........8}
</code></pre>

<p>Now I need to display "values" on labels with corresponding positions. the positions array describe the order in which values are to be assigned. so label 12 should have 21, label 1 should have 22 and so on...</p>

<p>I tried this by running a loop and couldn't get it..</p>

<pre><code>for (int j=1;j&lt;=54; j++)
{
    getLabelID("label" + positions [j].toString).Text = Convert.ToString(values[1]);
}
</code></pre>
