Add HTML Rows in a html table

From: TR (i0thoro_at_utb.hb.se)
Date: 10/20/04


Date: 20 Oct 2004 02:47:00 -0700

Hi! I have a webpage with a htmltable and a button in it.
When I push the button, I want to insert a new row with a cell in the
table. With my code I can add a row the first time a push the button,
but the second time nothing happens when I push the buttom. Why is it
like this? and how to make this possible? I have this code under my
buttons click event in my behind code class:

Dim r As New HtmlTableRow
r.Visible = True

Dim c As New HtmlTableCell
c.Visible = True
c.Attributes.Add("class", "Inmatning")
r.Cells.Add(c)

Table2.Rows.Insert(Table2.Rows.Count, r)

How to do if I want a row to be added EVERY time i push the button,
not only the first time?