Hi,
This is my code
For i As Integer = 0 To (count * 2) - 1
Dim txt As New TextBox()
Dim txt1 As New TextBox()
Dim lbl As New Label()
Dim lbl1 As New Label()
lbl.ID = "labl" & i.ToString()
lbl.Text = "Passengar Name "
txt.ID = "txt" & i.ToString() + "<br>"
lbl1.ID = "labl1" & i.ToString()
txt1.ID = "txt1" & i.ToString() + "<br>"
lbl1.Text = "Age"
Form.Controls.Add(txt)
Form.Controls.Add(lbl)
Form.Controls.Add(lbl1)
Next
my output is Textbox1 Passenger name age Textbox2 Passenger name age Textbox3 .. break tag is not working it is displayed in a single line..more over label is displayed after the textbox.
wanted output...
Passenger Name Textbox1 Age Textbox2
Passenger Name Textbox3 Age Textbox4