T
ton
Hi,
I want to add several textbox to my form during runtime: the code is very
simple
Lab = New TextBox
Lab.ID = "A" & i
Lab.Height = 200
Lab.Visible = True
Lab.Text = "test"
Lab.Attributes.Add("runat", "Server")
Lab.Attributes("style") = " LEFT: " & x & "px; POSITION:
absolute; TOP:" & 250 * i & "px "
Controls.Add(Lab)
after this I receive an error which tells me that the textbox should be
placed within a form label with runat=server.
Adding a label works fine
thanks
ton
I want to add several textbox to my form during runtime: the code is very
simple
Lab = New TextBox
Lab.ID = "A" & i
Lab.Height = 200
Lab.Visible = True
Lab.Text = "test"
Lab.Attributes.Add("runat", "Server")
Lab.Attributes("style") = " LEFT: " & x & "px; POSITION:
absolute; TOP:" & 250 * i & "px "
Controls.Add(Lab)
after this I receive an error which tells me that the textbox should be
placed within a form label with runat=server.
Adding a label works fine
thanks
ton