Been looking for this one for a while now, how to layout dynamiccally created controls. Found some C# sharp which looked like this
Finally I got the picture lol, gotta actually put HTML in there using literals. So joy joy off to the workbench with that.
I ended up with something like this
Problem is ... it's not adding the literals to the placeholder at all :'( Am I doing this all wrong, are there easyer ways or ?
Many thx
Code:
Form1.Controls.Add(
new LiteralControl("\r\nWhat is your name?\r\n"));
TextBox TextBox1 = new TextBox();
...
I ended up with something like this
Code:
litLiteral.Text = "<tr><td>"
Me.phParameters.Controls.Add(litLiteral)
Me.phParameters.Controls.Add(lblParameter)
litLiteral.Text = "</td><td>"
Me.phParameters.Controls.Add(litLiteral)
Me.phParameters.Controls.Add(txtParameter)
litLiteral.Text = "</td><td>"
Me.phParameters.Controls.Add(litLiteral)
Me.phParameters.Controls.Add(chkParameter)
Many thx