tags:

views:

195

answers:

1

I'm taking values from a database and dynamically placing points on a 2d cartesian plane. I need a way to set the top and left css properties.

Any help would be much appreciated.

Thanks in advance

A: 
Panel p = // dynamically created panel
p.Style.Add(HtmlTextWriterStyle.Top, ((int)yValue).ToString());
p.Style.Add(HtmlTextWriterStyle.Left, ((int)xValue).ToString());
AgileJon