Positioning controls on webform

rmatthew

Well-known member
Joined
Dec 30, 2002
Messages
115
Location
Texas
I need to dynamically load a number of listbox controls on a webform. Is there a way that I can specifiy a position for the newly loaded controls?


Thanks in advance!
 
There may be a better way of doing this, but heres one way....
Code:
PlaceHolder1.Controls.Add(new LiteralControl("<center>"));
label1.Width = System.Web.UI.WebControls.Unit.Parse("100%");
Label1.Height = System.Web.UI.WebControls.Unit.Parse("50pt");
 
Back
Top