Author: adsmag | Posted on: 11/23/2009 11:36:10 PM | Views : 229

Hi! Is there a way i can add during runtime a new row to a asp table control whenever i click a button. I tried this code but it only works during my 1st click. after that no new rows can be added. Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim newr As New TableRow For i As Integer = 1 To 6 Dim newc As New TableCell newc.Controls.Add(New LiteralControl("cell " & i)) newr.Cells.Add(newc) Next Table1.rows.add(newr) End Sub Thanks ...

Go to the complete details ...