hi any help how can i create my numbering when it is looping? i always got
0. text
0. text
it should be
1. text
2. text
heres my code. help me . thanks
for (int count_id = 0; count_id < lb_docs.Items.Count; count_id++)
{
string docdesc = lb_docs.Items[count_id].ToString();
HtmlControl br2 = new HtmlGenericControl("br");
documents.Controls.Add(br2);
System.Web.UI.WebControls.Table tbldynamic = new System.Web.UI.WebControls.Table();
tbldynamic.BackColor = System.Drawing.Color.GhostWhite;
tbldynamic.CssClass = "mGrid1";
tbldynamic.GridLines = GridLines.None;
TableRow tr = new TableRow();
tr.CssClass = "table_row";
int i_questcnt = Convert.ToInt32(tbldynamic.Rows.Count);
TableCell tc0 = new TableCell();
tc0.Width = 10;
//tc0.BackColor = System.Drawing.Color.Gainsboro;
Label l_count = new Label();
...
Go to the complete details ...