Results 1 to 5 of 5

Thread: Affecting one ASCX Control Globally

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216

    Question Affecting one ASCX Control Globally

    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?

    Code:
    style="LEFT: 714px;

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Could you rephrase that? I haven't a clue what you are talking about.

    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    I am wanting to affect the absolute positioning of the table that houses the ascx control. Maybe this is not possible

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    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

    VB Code:
    1. <style>
    2.     BODY { MARGIN: 0px }
    3. </style>
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  5. #5
    New Member
    Join Date
    Jun 2003
    Posts
    9

    absolut position

    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>
    angiras

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width