S
Steven K
Hello,
I am creating a label and populating it with HTML. I also need to add a new
textbox for each row. I am having a problem adding the control in the loop.
Any help with this would be appreciated.
Sub Page_Load(Sender As Object, E As EventArgs)
....
Do While spQstName.Read
Dim tbxQstName As New Textbox()
tbxQstName.ID = "textbox" & spQstName("strQuestionNo")
lblQuestion.Text &= "<tr><td >& Controls.Add(tbxQstName) & "</td></tr>"
Loop
End Sub
I am creating a label and populating it with HTML. I also need to add a new
textbox for each row. I am having a problem adding the control in the loop.
Any help with this would be appreciated.
Sub Page_Load(Sender As Object, E As EventArgs)
....
Do While spQstName.Read
Dim tbxQstName As New Textbox()
tbxQstName.ID = "textbox" & spQstName("strQuestionNo")
lblQuestion.Text &= "<tr><td >& Controls.Add(tbxQstName) & "</td></tr>"
Loop
End Sub