hi any help.. i dont know whats wrong with my code i use to have only 2 data to display but it become 4. it double. i dont know where or what is wrong with my code/ looping... heres my code..
int i_catcnt = Convert.ToInt32(dt_cat.Rows.Count);
for (int i_rowcnt = 0; i_rowcnt < i_catcnt; i_rowcnt++)
{
SqlCon.Open();
SqlCommand sc_docs1 = new SqlCommand("SELECT * FROM docs WHERE id =" + s_id, SqlCon);
SqlDataReader sdr_docs1 = sc_docs1.ExecuteReader();
sc_docs1.Dispose();
while (sdr_docs1.Read())
{
TableRow tr = new TableRow();
tr.CssClass = "table_row";
int i_questcnt = Convert.ToInt32(tbldynamic.Rows.Count);
TableCell tc0 = new TableCell();
tc0. ...
Go to the complete details ...