georgepatotk
Contributor
how do I add a row into a table in ASP.NET(vb)
below is what I had done, can anyone tell me where I did wrong?
I had created 1 Collection and in the Collection, it has 4 cells
Please help me. Thanks...
below is what I had done, can anyone tell me where I did wrong?
I had created 1 Collection and in the Collection, it has 4 cells
Code:
Dim img As System.Web.UI.WebControls.Image
img.ImageUrl = Server.MapPath("/Graphics/DOT-pdf.jpg")
tblResult.Rows(0).Cells(0).Controls.Add(img)
tblResult.Rows(0).Cells(1).Controls.Add(dsResult.Tables(0).Rows(i).ItemArray.GetValue(1))
tblResult.Rows(0).Cells(3).Controls.Add("<a href = """ & dsResult.Tables(0).Rows(i).ItemArray.GetValue(2) & """ > View </a>")
Please help me. Thanks...