PDA

Click to See Complete Forum and Search --> : Affecting one ASCX Control Globally


jesus4u
Jun 9th, 2003, 07:57 AM
ok, time saver question. I have a WebUserControl (ASCX) that is used on about 25 pages. But as the control has grown, it just shows hyperlinks, the width of it is larger. Is there a way that I can change the LEFT position of the table that the control is sitting in so that I don't have to visit each page?


style="LEFT: 714px;

Cander
Jun 9th, 2003, 09:23 AM
Could you rephrase that? I haven't a clue what you are talking about.

:confused: :confused:

jesus4u
Jun 9th, 2003, 09:28 AM
I am wanting to affect the absolute positioning of the table that houses the ascx control. Maybe this is not possible :p

Cander
Jun 9th, 2003, 09:53 AM
Ok. Should be able to do that with the client side styling stuff. ie. Use this in the beggining of the .ascx to set the margins to 0 for whatever the control will be contained in


<style>
BODY { MARGIN: 0px }
</style>

angiras
Jun 9th, 2003, 12:29 PM
if you want an absolute position just put the table into a DIV , into your ascx file

<div style="position:absolute;top:0%;left:0%;height:auto;width:200px;"><table>your content</table></div>