Groups | Blog | Home
all groups > asp.net webcontrols > may 2005 >

asp.net webcontrols : set top and left on web control?



ENathan
5/12/2005 9:15:11 AM
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)?

Mythran
5/13/2005 10:24:45 AM

[quoted text, click to view]

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
AddThis Social Bookmark Button