T
TR
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?
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?