Create labels dynamically ASP.NET C# -
i created labels dynamically usgin code
label new_lbl = new label(); new_lbl.forecolor = system.drawing.color.red; new_lbl.id = "lab" + i; new_lbl.text = "vous avez atteint le seuil minimal des " + con.datatable.rows[i].itemarray[j - 2].tostring() + " " + con.datatable.rows[i].itemarray[j - 1].tostring(); panel1.controls.add(new_lbl);
but them next each other. how can them vertically aligned ???
i appreciate help.
you can use below menioend code
new_lbl.text = "vous avez atteint le seuil minimal des " + con.datatable.rows[i].itemarray[j - 2].tostring() + " <br/>" + con.datatable.rows[i].itemarray[j - 1].tostring();
Comments
Post a Comment