If you want to do it on server side i would suggest you to use -
1) asp:Table control, where you can loop thru your arrays at serverside and insert new tableRow and TableCell elements with whatever controls you want to place in your TableCell
<asp:Table runat="server" ID="asptable">
for(int i =0; i < ar1.Length; i++)
{
TableRow tr = new TableRow();
TableCell c = new TableCell();
CheckBox cb = new CheckBox();
cb.Attributes.Add("onclick", "alert(\"added\")");
cb.AutoPostBack = true;
cb.CheckedChanged+=new EventHandler(cb_CheckedChanged);
cb.ID = "cbRoll" + ar1[i];
c.Controls.Add(cb);
tr.Cells.Add(c);
TableCell c2 = new TableCell();
c2.Text = ar2[i];
tr.Cells.Add(c2);
asptable.Rows.Add(tr);
}
}
protected void cb_CheckedChanged(object sender, EventArgs e)
{
CheckBox cb = (CheckBox)sender;
}
2) or you can use HtmlTextWriterTag at server side to write your own html ( like write your own table tags and all other child elements in it)
if you doing it on client side
1) you can use jquery or normal java to append html elements in your div tag or table rows in your table etc...