Mar 4, 2003 #1 R 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!
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!
Mar 4, 2003 #2 Robby Moderator Joined Nov 17, 2002 Messages 3,461 Location Montreal, Ca. User Rank *Expert* 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");
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");