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

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,139
Latest member
JamaalCald
Top