473,396 Members | 1,725 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Label generated in code at exact position

gce
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>

Nov 19 '05 #1
1 1300
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>

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Stuart Norris | last post by:
Dear Readers, I am attempting to draw box around some text using unicode on multiline label. The label is forty characters wide and 12 lines deep. I have been trying to draw a box around text...
2
by: shail | last post by:
Sir, I have a label control in web form, I want to adjust its height according to the contents in it which are generated dynaically and I want other controls position should readjust according to...
3
by: david | last post by:
I never use CSS for asp.net. I would like to get help about how to write CSS for the font size of asp label control. I have a lot of labels in asp.net web form design page. It seems that there is...
2
by: Joe Delphi | last post by:
Hi, I want to position label text so that it always appears centered when the user re-sizes the browser window. I tried adding the HTML property text-align="CENTER" to the code, but ASP.NET...
8
by: david | last post by:
I have developed a web form by using visual Studio. My question is: (1) what is the problem? (2) what is right way to do it? In the form, there are labels with id: lblWear, lblColor, and...
8
by: Jordi Rico | last post by:
Hi, I've made the next inherited class in Visual Studio 2005: Public Class LabelEx Inherits System.Windows.Forms.Label Sub New() MyBase.New() Me.ForeColor = Color.Black Me.AutoSize = False...
12
by: vbnewbie | last post by:
I am having problems accessing properties of dynamically generated objects in VB2005. Can someone please help? In a nutshell: My app creates an equal number of checkboxes and labels that share the...
4
by: =?Utf-8?B?cmFuZHkxMjAw?= | last post by:
I have two labels on a form. The text for these two labels is assigned at runtime. lblLeft lblRight If the text for lblLeft is wider than the default, the text runs into lblRight. How do...
6
by: =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= | last post by:
Yesterday Visual Studio gave me a strange error both at compiletime and at designtime that had no obvious connection to anything I had changed recently. After some effort tracking down the problem...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.