Placeholder and positioning of children

  • Thread starter Thread starter kurt sune
  • Start date Start date
K

kurt sune

I try to position 4 controls above each other in a placeholder web server
control.

Thus:
Dim tx As New HtmlInputText
tx.Value = "text 1"
Me.PlaceHolder1.Controls.Add(tx)


I can put them in but they all gets in one line.

How do I put them above each other?

/k
 
You need to add something to tell the HTML to go to a new line.

For instance, you can add Me.Controls.Add(New LiteralControl("<br/>"))
after each control.

-Phil
 
Back
Top