Home All Groups Group Topic Archive Search About

set top and left on web control?

Author
12 May 2005 4:15 PM
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)?

Author
13 May 2005 5:24 PM
Mythran
"ENathan" <njoysgolf***@yahoo.com> wrote in message
news:%230PNH3wVFHA.3188@TK2MSFTNGP09.phx.gbl...
> 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