1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| public void disp_line_table(string dir)
{
Bdd bdd = new Bdd();
string[][] tab = bdd.TakeBac_dir(Session["2"].ToString(), dir);
int j = 0;
CheckBox box = new CheckBox();
while (tab[j] != null)
{
string str = "<tr><th>" + tab[j][1] + "</th><th>" + "Bac Classique" + "</th><th>" + tab[j][6] + "</th><th>" + tab[j][7] + "</th><th>" +
tab[j][4] + "</th><th>" + tab[j][5] + "</th><th>" + tab[j][8] + "</th><th>" + "<label><input type=\"checkbox\" id=\"" + "CheckBox" + j.ToString() + "\" value=\"premiere_checkbox\"></label><br>"
+ "</th><th>";
Response.Write(str);
Response.Write("</th></tr>");
CheckBox box = new CheckBox();
box.ID = "CheckBox" + j.ToString();
this.Controls.Add(box);
j++;
}
} |
Partager