set top and left on web control?

E

ENathan

We generate pages dynamically. Our pages are constructed with web controls
in a "flow layout" manner facilitated by heavy use of the literal control.
We would like to change that to a "grid layout" manner. Is this possible? We
all know that web controls don't support the top and left properties, so are
we going to have to wrap everything in it's own grid layout panel(HTML
Control)?
 
M

Mythran

ENathan said:
We generate pages dynamically. Our pages are constructed with web controls
in a "flow layout" manner facilitated by heavy use of the literal control.
We would like to change that to a "grid layout" manner. Is this possible?
We
all know that web controls don't support the top and left properties, so
are
we going to have to wrap everything in it's own grid layout panel(HTML
Control)?

If I understand you correctly, you want to set a "Top" and "Left" position
of a web control. To do this, in a real generic way, do something like the
following:

C#:

string style = "position:absolute;top:100px;left:100px;";
WebControl1.Attributes.Add("style", style);

HTH,
Mythran
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top