Set absolute positioning for control

Aug 3, 2011 at 4:08 PM

Hi, I agree, great tool.

I have a question also.

I need to position the control and am using code to dynamically place the controls on the screen.

I have used all of ASP .net control and was able to set a   

objcontrol.Style.Value = "left:250px; position:absolute; top:250px";  

here is my actual code

objControl.Style.Value = "left: " + strLeft + "px; position: absolute; top: " + strTop + "px"; 

I am sure there is a way to do that with your control but could you help me with the StyleSheet CSS parts so i can get the control to be placed anywhere of my choosing on the screen.

 

Thanks again,

Aug 4, 2011 at 8:49 AM

I'd suggest wrapping the control in <div id="wrapperDiv" runat="server"> element and setting wrapperDiv.Style.Value = "left: " + strLeft + "px; position: absolute; top: " + strTop + "px";

Try playing with this solution and it should work.