ASP.NET How do I set the position of a control at runtime?
- by Jamie
Hi all,
I'm adding a label to a page using the code below, how would I set the position of the label (i.e top right)?
Label lbl = new Label();
lbl.Text = "Test";
lbl.ForeColor = System.Drawing.Color.Black;
lbl.Font.Size = 10;
lbl.Font.Bold = false;
lbl.Font.Name = "Arial";
Page.Controls.Add(lbl);
Thanks