You can use positioning code like this:
MyLabel.Attributes.Add("style, "LEFT:500px;");
Alternately, you could precisely position a placeholder control at design
time.
Then at runtime you can use some code kinda like this:
MyPlaceHolder.Controls.Add(MyLabel)
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"gce" <gc****@hotmail.com> wrote in message
news:d3**********@news4.zwoll1.ov.home.nl...
I like to declare my label in the code : dim lblTotaal as new label
And then I like to place it on an exact position. When I type the
following in the HTML part it works, but I like to have my code do the
trick. Please help
<asp:Label id="lblTotaal" style="Z-INDEX: 103; LEFT: 500px; POSITION:
absolute; TOP: 500px" runat="server" Height="16px"
Width="112px">lblTotaal</asp:Label>